summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/declarative/graphicsitems/qdeclarativeitem.cpp4
-rw-r--r--src/declarative/graphicsitems/qdeclarativemousearea.cpp4
2 files changed, 8 insertions, 0 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativeitem.cpp b/src/declarative/graphicsitems/qdeclarativeitem.cpp
index 86ef0df..54aa3a9 100644
--- a/src/declarative/graphicsitems/qdeclarativeitem.cpp
+++ b/src/declarative/graphicsitems/qdeclarativeitem.cpp
@@ -64,6 +64,10 @@
#include <QtGui/qgraphicstransform.h>
#include <qlistmodelinterface_p.h>
+#ifndef FLT_MAX
+#define FLT_MAX 1E+37
+#endif
+
QT_BEGIN_NAMESPACE
/*!
diff --git a/src/declarative/graphicsitems/qdeclarativemousearea.cpp b/src/declarative/graphicsitems/qdeclarativemousearea.cpp
index 7e4a36f..67de288 100644
--- a/src/declarative/graphicsitems/qdeclarativemousearea.cpp
+++ b/src/declarative/graphicsitems/qdeclarativemousearea.cpp
@@ -47,6 +47,10 @@
#include <QGraphicsSceneMouseEvent>
#include <QtCore/qmath.h>
+#ifndef FLT_MAX
+#define FLT_MAX 1E+37
+#endif
+
QT_BEGIN_NAMESPACE
static const int PressAndHoldDelay = 800;