From ccada9b87d7236355fd804628be9e250e1782306 Mon Sep 17 00:00:00 2001 From: Yuchen Deng Date: Mon, 20 Aug 2012 19:00:42 +0800 Subject: [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 --- src/3rdparty/v8/src/platform.h | 4 ++-- 1 file 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" -- cgit v1.2.1