summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/corelib/kernel/qfunctions_wince.h5
-rw-r--r--src/plugins/qmltooling/qmldbg_inspector/editor/liveselectionrectangle.cpp4
2 files changed, 9 insertions, 0 deletions
diff --git a/src/corelib/kernel/qfunctions_wince.h b/src/corelib/kernel/qfunctions_wince.h
index d634cba..2ce82cf 100644
--- a/src/corelib/kernel/qfunctions_wince.h
+++ b/src/corelib/kernel/qfunctions_wince.h
@@ -80,7 +80,12 @@ QT_END_HEADER
errno_t qt_wince_getenv_s(size_t*, char*, size_t, const char*);
errno_t qt_wince__putenv_s(const char*, const char*);
+// Std --------------------------------------------------------------
#ifdef __cplusplus // have this as tiff plugin is written in C
+namespace std {
+ template <class T> inline T floor(const T& a) {return ::floor(a);}
+}
+
extern "C" {
#endif
diff --git a/src/plugins/qmltooling/qmldbg_inspector/editor/liveselectionrectangle.cpp b/src/plugins/qmltooling/qmldbg_inspector/editor/liveselectionrectangle.cpp
index 91db286..7ef926d 100644
--- a/src/plugins/qmltooling/qmldbg_inspector/editor/liveselectionrectangle.cpp
+++ b/src/plugins/qmltooling/qmldbg_inspector/editor/liveselectionrectangle.cpp
@@ -52,6 +52,10 @@
#include <cmath>
+#ifdef Q_OS_WINCE
+# include <qfunctions_wince.h>
+#endif
+
namespace QmlJSDebugger {
class SelectionRectShape : public QGraphicsRectItem