diff options
Diffstat (limited to 'winsup/w32api/include/winnt.h')
-rw-r--r-- | winsup/w32api/include/winnt.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/winsup/w32api/include/winnt.h b/winsup/w32api/include/winnt.h index 24ce2de35..c1c998c9b 100644 --- a/winsup/w32api/include/winnt.h +++ b/winsup/w32api/include/winnt.h @@ -4041,11 +4041,7 @@ struct _TEB * NtCurrentTeb(void); # 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 |