diff options
author | Yuchen Deng <loaden@gmail.com> | 2012-08-20 19:00:42 +0800 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-08-21 11:14:40 +0200 |
commit | e49f760da4b42c96e9fd927ab8b7a5d0808dc5a3 (patch) | |
tree | 04562a567ddb268b1805ba84d2bb477957bde3af | |
parent | 89c7e60ca70d0ff8f26f311fa92b8109d275f6f9 (diff) |
Compile v8.cc under C++11 mode using MinGW-w64 4.7.1v5.0.0-beta1
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>
-rw-r--r-- | src/3rdparty/v8/src/platform.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/3rdparty/v8/src/platform.h b/src/3rdparty/v8/src/platform.h index a2ddf7a..a9464de 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 @@ -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" |