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 |