summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuchen Deng <loaden@gmail.com>2012-08-20 19:00:42 +0800
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-01-09 13:07:15 +0100
commitccada9b87d7236355fd804628be9e250e1782306 (patch)
tree543da90077737814bc6c6ee93571234e006a6b63
parentf3c64c7ee0c982183f034fc148202bdb0d84996d (diff)
downloadqtjsbackend-ccada9b87d7236355fd804628be9e250e1782306.tar.gz
[V8] Compile v8.cc under C++11 mode using MinGW-w64 4.7.1
error: 'random' was not declared in this scope WIN32 is not defined on C++11 mode, but _WIN32 is defined. Simply change WIN32 to _WIN32 is enough Change-Id: Id145de58bea2613c1a86f49a67303b39cb6fdd2c Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
-rw-r--r--src/3rdparty/v8/src/platform.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/3rdparty/v8/src/platform.h b/src/3rdparty/v8/src/platform.h
index 2ac63ff..f3ab08d 100644
--- a/src/3rdparty/v8/src/platform.h
+++ b/src/3rdparty/v8/src/platform.h
@@ -62,7 +62,7 @@ int signbit(double x);
// Windows specific stuff.
-#ifdef WIN32
+#ifdef _WIN32
// Microsoft Visual C++ specific stuff.
#ifdef _MSC_VER
@@ -94,7 +94,7 @@ inline int lrint(double flt) {
// Random is missing on both Visual Studio and MinGW.
int random();
-#endif // WIN32
+#endif // _WIN32
#include "atomicops.h"
#include "lazy-instance.h"