* 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>
|
2012-08-04 Earnie Boyd <earnie@users.sourceforge.net>
|
||||||
|
|
||||||
* include/winver.h (VerQueryValue[AW]): Correct declaration per MSDN.
|
* include/winver.h (VerQueryValue[AW]): Correct declaration per MSDN.
|
||||||
|
|
|
@ -4041,11 +4041,7 @@ struct _TEB * NtCurrentTeb(void);
|
||||||
# elif defined(_IA64_)
|
# elif defined(_IA64_)
|
||||||
# define MemoryBarrier __mf
|
# define MemoryBarrier __mf
|
||||||
# else
|
# else
|
||||||
FORCEINLINE VOID MemoryBarrier (VOID) {
|
# define MemoryBarrier __sync_synchronize
|
||||||
LONG Barrier = 0;
|
|
||||||
__asm__ __volatile__("xchgl %%eax,%0 "
|
|
||||||
:"=r" (Barrier));
|
|
||||||
}
|
|
||||||
# endif
|
# endif
|
||||||
#else
|
#else
|
||||||
# define MemoryBarrier
|
# define MemoryBarrier
|
||||||
|
|
Loading…
Reference in New Issue