Browse Source

cmThread.c : Fixed bug in cmThPtrCAS() where #ifdef OS_VER_10_5 was used

instead of #ifdef OS_64.
master
kevin 10 years ago
parent
commit
b16d338592
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      cmThread.c

+ 3
- 3
cmThread.c View File

1120
 #endif
1120
 #endif
1121
 
1121
 
1122
 #ifdef OS_LINUX
1122
 #ifdef OS_LINUX
1123
-#ifdef OSX_VER_10_5
1124
-  return  __sync_bool_compare_and_swap((int*)addr,(int)old,(int)neww); 
1125
-#else
1123
+#ifdef OS_64
1126
   return  __sync_bool_compare_and_swap((long long*)addr, (long long)old, (long long)neww); 
1124
   return  __sync_bool_compare_and_swap((long long*)addr, (long long)old, (long long)neww); 
1125
+#else
1126
+  return  __sync_bool_compare_and_swap((int*)addr,(int)old,(int)neww); 
1127
 #endif
1127
 #endif
1128
 #endif
1128
 #endif
1129
 }
1129
 }

Loading…
Cancel
Save