* include/winnt.h (MemoryBarrier): Use __sync_synchronize instead of

creating a function due to multiple definition.
This commit is contained in:
Earnie Boyd 2012-08-06 15:49:39 +00:00
parent b875960da7
commit 705d9e463c
2 changed files with 6 additions and 5 deletions

View File

@ -1,3 +1,8 @@
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.

View File

@ -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