creating a function due to multiple definition.
+2012-08-06 Earnie Boyd <earnie@users.sourceforge.net>
+
+ * include/winnt.h (MemoryBarrier): Use __sync_synchronize instead of
+ creating a function due to multiple definition.
+
2012-08-04 Earnie Boyd <earnie@users.sourceforge.net>
* include/winver.h (VerQueryValue[AW]): Correct declaration per MSDN.
# elif defined(_IA64_)
# define MemoryBarrier __mf
# else
- FORCEINLINE VOID MemoryBarrier (VOID) {
- LONG Barrier = 0;
- __asm__ __volatile__("xchgl %%eax,%0 "
- :"=r" (Barrier));
- }
+# define MemoryBarrier __sync_synchronize
# endif
#else
# define MemoryBarrier