pipe/atomic: dont use ms interlock calls from gcc
authorKeith Whitwell <keithw@vmware.com>
Wed, 18 Mar 2009 13:27:53 +0000 (13:27 +0000)
committerKeith Whitwell <keithw@vmware.com>
Wed, 18 Mar 2009 13:27:53 +0000 (13:27 +0000)
src/gallium/include/pipe/p_atomic.h

index 1f1470e19a212118aeb48d2f1cb2a14be7b7dc71..f2fe083efa78416473014064978475789ab03f1a 100644 (file)
@@ -24,7 +24,8 @@ extern "C" {
     defined(PIPE_SUBSYSTEM_WINDOWS_MINIPORT))
 
 #define PIPE_ATOMIC_OS_MS_INTERLOCK             \
-   (!PIPE_ATOMIC_OS_UNLOCKED &&                 \
+   (!defined(PIPE_CC_GCC) &&                    \
+    !PIPE_ATOMIC_OS_UNLOCKED &&                 \
     defined(PIPE_SUBSYSTEM_WINDOWS_USER))
 
 #define PIPE_ATOMIC_OS_PROVIDED                 \