comparison system/System.cpp @ 1357:dca12b13d90b 3.0-integration

Fix a strictly-incorrect #if guard
author Chris Cannam
date Mon, 09 Jan 2017 16:41:45 +0000
parents 39ce813e185c
children 39271c98cbdd
comparison
equal deleted inserted replaced
1356:39ce813e185c 1357:dca12b13d90b
284 __asm__ __volatile__("xchgl %%eax,%0 " 284 __asm__ __volatile__("xchgl %%eax,%0 "
285 : "=r" (Barrier)); 285 : "=r" (Barrier));
286 #endif 286 #endif
287 } 287 }
288 #else /* !_WIN32 */ 288 #else /* !_WIN32 */
289 #if !defined(__APPLE__) && ((__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ == 0)) 289 #if !defined(__APPLE__) && defined(__GNUC__) && ((__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ == 0))
290 void 290 void
291 SystemMemoryBarrier() 291 SystemMemoryBarrier()
292 { 292 {
293 pthread_mutex_t dummy = PTHREAD_MUTEX_INITIALIZER; 293 pthread_mutex_t dummy = PTHREAD_MUTEX_INITIALIZER;
294 pthread_mutex_lock(&dummy); 294 pthread_mutex_lock(&dummy);