Reviewers: Yang, Description: Fix MinGW-w64 compilation
Contributed by [email protected] BUGS= TEST= Please review this at https://chromiumcodereview.appspot.com/9581045/ SVN Base: http://v8.googlecode.com/svn/branches/bleeding_edge/ Affected files: M src/platform-win32.cc Index: src/platform-win32.cc =================================================================== --- src/platform-win32.cc (revision 10911) +++ src/platform-win32.cc (working copy) @@ -112,11 +112,16 @@ } +#ifndef __MINGW64_VERSION_MAJOR + inline void MemoryBarrier() { int barrier = 0; __asm__ __volatile__("xchgl %%eax,%0 ":"=r" (barrier)); } +#endif // __MINGW64_VERSION_MAJOR + + #endif // __MINGW32__ // Generate a pseudo-random number in the range 0-2^31-1. Usually -- v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev
