comparison src/atomic/SDL_spinlock.c @ 5093:2164a79b5ca9

Only include windows.h on Windows. :)
author Sam Lantinga <slouken@libsdl.org>
date Mon, 24 Jan 2011 21:22:00 -0800
parents 327f181542f1
children dceec93471e7
comparison
equal deleted inserted replaced
5092:327f181542f1 5093:2164a79b5ca9
23 23
24 #include "SDL_atomic.h" 24 #include "SDL_atomic.h"
25 #include "SDL_timer.h" 25 #include "SDL_timer.h"
26 26
27 /* Don't do the check for Visual Studio 2005, it's safe here */ 27 /* Don't do the check for Visual Studio 2005, it's safe here */
28 #ifdef __WIN32__
28 #include "../core/windows/SDL_windows.h" 29 #include "../core/windows/SDL_windows.h"
30 #endif
29 31
30 /* This function is where all the magic happens... */ 32 /* This function is where all the magic happens... */
31 SDL_bool 33 SDL_bool
32 SDL_AtomicTryLock(SDL_SpinLock *lock) 34 SDL_AtomicTryLock(SDL_SpinLock *lock)
33 { 35 {