From f29261e662fe43999a98d84e652b9e96768f11ae Mon Sep 17 00:00:00 2001 From: Earnie Boyd Date: Mon, 6 Aug 2012 18:12:53 +0000 Subject: * include/winnt.h (MemoryBarrier): Define to __mingworg_MemoryBarrier() which is in libmingwex.a. MODIFIED FROM: Use __sync_synchronize instead of creating a function due to multiple definition. NOTE: Not using __sync_synchronize to allow applications to mix-n-match C libraries from different vendors. --- winsup/w32api/ChangeLog | 6 +++++- winsup/w32api/include/winnt.h | 3 ++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/winsup/w32api/ChangeLog b/winsup/w32api/ChangeLog index d147f9eaf..711b066c6 100644 --- a/winsup/w32api/ChangeLog +++ b/winsup/w32api/ChangeLog @@ -1,7 +1,11 @@ 2012-08-06 Earnie Boyd - * include/winnt.h (MemoryBarrier): Use __sync_synchronize instead of + * include/winnt.h (MemoryBarrier): Define to __mingworg_MemoryBarrier() + which is in libmingwex.a. + MODIFIED FROM: Use __sync_synchronize instead of creating a function due to multiple definition. + NOTE: Not using __sync_synchronize to allow applications to mix-n-match + C libraries from different vendors. 2012-08-04 Earnie Boyd diff --git a/winsup/w32api/include/winnt.h b/winsup/w32api/include/winnt.h index c1c998c9b..d650bf800 100644 --- a/winsup/w32api/include/winnt.h +++ b/winsup/w32api/include/winnt.h @@ -4041,7 +4041,8 @@ struct _TEB * NtCurrentTeb(void); # elif defined(_IA64_) # define MemoryBarrier __mf # else -# define MemoryBarrier __sync_synchronize + void __mingworg_MemoryBarrier(void); +# define MemoryBarrier __mingworg_MemoryBarrier # endif #else # define MemoryBarrier -- cgit v1.2.3