Limit use of AIX intrinsics to IBM's compiler

This commit is contained in:
Behdad Esfahbod 2015-12-10 17:44:19 +01:00
parent e1d4d0f1db
commit 49e72634af
1 changed files with 1 additions and 1 deletions

View File

@ -119,7 +119,7 @@ typedef unsigned int hb_atomic_int_impl_t;
#define hb_atomic_ptr_impl_cmpexch(P,O,N) ( ({__machine_rw_barrier ();}), atomic_cas_ptr ((void **) (P), (void *) (O), (void *) (N)) == (void *) (O) ? true : false) #define hb_atomic_ptr_impl_cmpexch(P,O,N) ( ({__machine_rw_barrier ();}), atomic_cas_ptr ((void **) (P), (void *) (O), (void *) (N)) == (void *) (O) ? true : false)
#elif !defined(HB_NO_MT) && defined(_AIX) #elif !defined(HB_NO_MT) && defined(_AIX) && defined(__IBMCPP__)
#include <builtins.h> #include <builtins.h>