Compile v8.cc under C++11 mode using MinGW-w64 4.7.1 80/1780/1
authorYuchen Deng <loaden@gmail.com>
Mon, 20 Aug 2012 11:00:42 +0000 (19:00 +0800)
committerQt by Nokia <qt-info@nokia.com>
Tue, 21 Aug 2012 09:14:40 +0000 (11:14 +0200)
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: I8cad360945e7f31c34a70f54c754fafeffc2f36a
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
src/3rdparty/v8/src/platform.h

index a2ddf7a..a9464de 100644 (file)
@@ -62,7 +62,7 @@ int signbit(double x);
 
 
 // Windows specific stuff.
-#ifdef WIN32
+#ifdef _WIN32
 
 // Microsoft Visual C++ specific stuff.
 #ifdef _MSC_VER
@@ -76,7 +76,7 @@ int strncasecmp(const char* s1, const char* s2, int n);
 // Random is missing on both Visual Studio and MinGW.
 int random();
 
-#endif  // WIN32
+#endif  // _WIN32
 
 #include "atomicops.h"
 #include "lazy-instance.h"