# HG changeset patch # User Sam Lantinga # Date 1295932920 28800 # Node ID 2164a79b5ca9f8827174d280df696e31b4e63f3b # Parent 327f181542f1c738730c18228507125f0219c217 Only include windows.h on Windows. :) diff -r 327f181542f1 -r 2164a79b5ca9 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