cmThread.c : Fixed bug in cmThPtrCAS() where #ifdef OS_VER_10_5 was used
instead of #ifdef OS_64.
This commit is contained in:
parent
51a0d5c006
commit
b16d338592
@ -1120,10 +1120,10 @@ bool cmThPtrCAS( void* addr, void* old, void* neww )
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef OS_LINUX
|
#ifdef OS_LINUX
|
||||||
#ifdef OSX_VER_10_5
|
#ifdef OS_64
|
||||||
return __sync_bool_compare_and_swap((int*)addr,(int)old,(int)neww);
|
|
||||||
#else
|
|
||||||
return __sync_bool_compare_and_swap((long long*)addr, (long long)old, (long long)neww);
|
return __sync_bool_compare_and_swap((long long*)addr, (long long)old, (long long)neww);
|
||||||
|
#else
|
||||||
|
return __sync_bool_compare_and_swap((int*)addr,(int)old,(int)neww);
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user