Disable Intel atomic ops on mingw32

Apparently the configure test is not enough...
This commit is contained in:
Behdad Esfahbod 2012-06-05 20:39:07 -04:00
parent 0594a24484
commit 4a3a9897b3
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ typedef int32_t hb_atomic_int_t;
#define hb_atomic_ptr_cmpexch(P,O,N) OSAtomicCompareAndSwapPtrBarrier ((void *) (O), (void *) (N), (void **) (P)) #define hb_atomic_ptr_cmpexch(P,O,N) OSAtomicCompareAndSwapPtrBarrier ((void *) (O), (void *) (N), (void **) (P))
#elif !defined(HB_NO_MT) && defined(HAVE_INTEL_ATOMIC_PRIMITIVES) #elif !defined(HB_NO_MT) && defined(HAVE_INTEL_ATOMIC_PRIMITIVES) && !defined(__MINGW32__)
typedef int hb_atomic_int_t; typedef int hb_atomic_int_t;
#define hb_atomic_int_add(AI, V) __sync_fetch_and_add (&(AI), (V)) #define hb_atomic_int_add(AI, V) __sync_fetch_and_add (&(AI), (V))