diff --git a/src/gui/painting/qpainterpath.cpp b/src/gui/painting/qpainterpath.cpp index 4e1726c3832..b13b1bcad34 100644 --- a/src/gui/painting/qpainterpath.cpp +++ b/src/gui/painting/qpainterpath.cpp @@ -22,6 +22,8 @@ #include #include +#include + #include #if 0 @@ -3228,7 +3230,7 @@ QPainterPath QPainterPath::trimmed(qreal f1, qreal f2, qreal offset) const if (offset) { qreal dummy; - offset = modf(offset, &dummy); // Use only the fractional part of offset, range <-1, 1> + offset = std::modf(offset, &dummy); // Use only the fractional part of offset, range <-1, 1> qreal of1 = f1 + offset; qreal of2 = f2 + offset;