Skip to content

Commit

Permalink
Compile v8.cc under C++11 mode using MinGW-w64 4.7.1
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Joerg Bornemann <[email protected]>
  • Loading branch information
Yuchen Deng authored and Qt by Nokia committed Aug 21, 2012
1 parent 89c7e60 commit e49f760
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/3rdparty/v8/src/platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ int signbit(double x);


// Windows specific stuff.
#ifdef WIN32
#ifdef _WIN32

// Microsoft Visual C++ specific stuff.
#ifdef _MSC_VER
Expand All @@ -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"
Expand Down

0 comments on commit e49f760

Please sign in to comment.