Ver código fonte

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

instead of #ifdef OS_64.
master
kevin 10 anos atrás
pai
commit
b16d338592
1 arquivos alterados com 3 adições e 3 exclusões
  1. 3
    3
      cmThread.c

+ 3
- 3
cmThread.c Ver arquivo

@@ -1120,10 +1120,10 @@ bool     cmThPtrCAS(   void*    addr, void*    old, void*    neww )
1120 1120
 #endif
1121 1121
 
1122 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 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 1127
 #endif
1128 1128
 #endif
1129 1129
 }

Carregando…
Cancelar
Salvar