Only include windows.h on Windows. :)
authorSam Lantinga <slouken@libsdl.org>
Mon, 24 Jan 2011 21:22:00 -0800
changeset 50912164a79b5ca9
parent 5090 327f181542f1
child 5092 ed1d54f1290a
Only include windows.h on Windows. :)
src/atomic/SDL_spinlock.c
     1.1 --- a/src/atomic/SDL_spinlock.c	Mon Jan 24 21:20:30 2011 -0800
     1.2 +++ b/src/atomic/SDL_spinlock.c	Mon Jan 24 21:22:00 2011 -0800
     1.3 @@ -25,7 +25,9 @@
     1.4  #include "SDL_timer.h"
     1.5  
     1.6  /* Don't do the check for Visual Studio 2005, it's safe here */
     1.7 +#ifdef __WIN32__
     1.8  #include "../core/windows/SDL_windows.h"
     1.9 +#endif
    1.10  
    1.11  /* This function is where all the magic happens... */
    1.12  SDL_bool