summaryrefslogtreecommitdiff
path: root/include/SDL_atomic.h
diff options
context:
space:
mode:
authorRyan C. Gordon <icculus@icculus.org>2011-06-06 12:20:04 -0400
committerRyan C. Gordon <icculus@icculus.org>2011-06-06 12:20:04 -0400
commita74c9aa88d77d8da648bd00d73576db2f8884dc5 (patch)
treef2d052f65cb9f3d17368e4f44e44fda1d05700f0 /include/SDL_atomic.h
parent302081795c5126f349f3395179f06bfc75baed75 (diff)
Fixed gcc warnings for apps using SDL headers with -Wundef flag.
Fixes Bugzilla #1216. Thanks to Dimitris Zenios for the patch!
Diffstat (limited to 'include/SDL_atomic.h')
-rw-r--r--include/SDL_atomic.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/SDL_atomic.h b/include/SDL_atomic.h
index 5c6eadb5b8..6a6a73f5bb 100644
--- a/include/SDL_atomic.h
+++ b/include/SDL_atomic.h
@@ -140,7 +140,7 @@ void _ReadWriteBarrier(void);
/* Platform specific optimized versions of the atomic functions,
* you can disable these by defining SDL_DISABLE_ATOMIC_INLINE
*/
-#if SDL_ATOMIC_DISABLED
+#if defined(SDL_ATOMIC_DISABLED) && SDL_ATOMIC_DISABLED
#define SDL_DISABLE_ATOMIC_INLINE
#endif
#ifndef SDL_DISABLE_ATOMIC_INLINE