diff --git a/platforms/Cross/vm/sqAtomicOps.h b/platforms/Cross/vm/sqAtomicOps.h index 9852699d7c..fb20b8f5db 100644 --- a/platforms/Cross/vm/sqAtomicOps.h +++ b/platforms/Cross/vm/sqAtomicOps.h @@ -82,7 +82,7 @@ #elif IS_32_BIT_ARCH -# if TARGET_OS_IS_IPHONE +# if defined(TARGET_OS_IS_IPHONE) static inline void AtomicSet(uint64_t *target, uint64_t new_value) { @@ -239,7 +239,7 @@ AtomicGet(__int64 *target) #undef ATOMICADD16 -#if TARGET_OS_IS_IPHONE +#if defined(TARGET_OS_IS_IPHONE) # define sqAtomicAddConst(var,n) (assert(sizeof(var) == 4), OSAtomicAdd32(n,&(var)) #elif defined(_MSC_VER) @@ -305,7 +305,7 @@ AtomicGet(__int64 *target) * was made. */ -#if TARGET_OS_IS_IPHONE +#if defined(TARGET_OS_IS_IPHONE) # define sqCompareAndSwap(var,old,new) \ (sizeof(var) == 8 \ ? OSAtomicCompareAndSwap64(old, new, &var) \