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