Commit 57d90f79 authored by Sam Lantinga's avatar Sam Lantinga

Don't hose code that isn't expecting a windows include

parent b0e0f61c
...@@ -108,9 +108,13 @@ extern DECLSPEC void SDLCALL SDL_AtomicUnlock(SDL_SpinLock *lock); ...@@ -108,9 +108,13 @@ extern DECLSPEC void SDLCALL SDL_AtomicUnlock(SDL_SpinLock *lock);
/*@}*//*SDL AtomicLock*/ /*@}*//*SDL AtomicLock*/
/* Platform specific optimized versions of the atomic functions */ /* Platform specific optimized versions of the atomic functions */
#if defined(__WIN32__) #if defined(__WIN32__) && defined(_INC_WINDOWS)
/* Don't include windows.h, since it may hose code that isn't expecting it,
but if someone has already included it, this is fair game... */
#if 0
#define WIN32_LEAN_AND_MEAN #define WIN32_LEAN_AND_MEAN
#include <windows.h> #include <windows.h>
#endif
#define SDL_AtomicSet(a, v) InterlockedExchange(&(a)->value, v) #define SDL_AtomicSet(a, v) InterlockedExchange(&(a)->value, v)
#define SDL_AtomicGet(a) ((a)->value) #define SDL_AtomicGet(a) ((a)->value)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment