* include/winnt.h (MemoryBarrier): Use __sync_synchronize instead of
creating a function due to multiple definition.
This commit is contained in:
parent
b875960da7
commit
705d9e463c
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue