From 2ae3ebafb08d3b8dc13c02b976b6c0248f89d5b6 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Mon, 24 Jan 2011 21:22:00 -0800 Subject: [PATCH] Only include windows.h on Windows. :) --- src/atomic/SDL_spinlock.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/atomic/SDL_spinlock.c b/src/atomic/SDL_spinlock.c index b28b696ae..25fdca27a 100644 --- a/src/atomic/SDL_spinlock.c +++ b/src/atomic/SDL_spinlock.c @@ -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