summaryrefslogtreecommitdiffstats
path: root/examples/sysinfo/dialog.cpp
diff options
context:
space:
mode:
authorLorn Potter <lorn.potter@nokia.com>2011-03-22 11:19:32 +1000
committerLorn Potter <lorn.potter@nokia.com>2011-03-22 11:19:32 +1000
commit8281cf503c711273faa2815d9729c449625037a6 (patch)
tree9c5eecb1258747c4617ffdd2a0b90913d36e8dc9 /examples/sysinfo/dialog.cpp
parentba7740679fc30bdcc07959eeea916e71e136e18b (diff)
fix msvc build
Diffstat (limited to 'examples/sysinfo/dialog.cpp')
-rw-r--r--examples/sysinfo/dialog.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/examples/sysinfo/dialog.cpp b/examples/sysinfo/dialog.cpp
index 8096b686fa..68325a6437 100644
--- a/examples/sysinfo/dialog.cpp
+++ b/examples/sysinfo/dialog.cpp
@@ -42,8 +42,14 @@
#include <QMessageBox>
#include <QTimer>
#include <math.h>
-
-
+#ifndef Q_CC_MINGW
+#ifdef Q_OS_WIN
+// silly MS
+inline float round(float x) {
+ return floor(x+0.5);
+ }
+#endif
+#endif
Dialog::Dialog() :
QWidget(),
saver(NULL), systemInfo(NULL), di(NULL), ni(NULL),sti(NULL),bi(NULL),dis(NULL)