diff src/atomic/SDL_spinlock.c @ 5088:c2539ff054c8

Fixed compiling on Windows Mobile SDK 5.0 with Visual Studio 2008
author Sam Lantinga <slouken@libsdl.org>
date Mon, 24 Jan 2011 15:46:11 -0800
parents 1e94e68525d5
children 327f181542f1
line wrap: on
line diff
--- a/src/atomic/SDL_spinlock.c	Mon Jan 24 15:10:16 2011 -0800
+++ b/src/atomic/SDL_spinlock.c	Mon Jan 24 15:46:11 2011 -0800
@@ -26,8 +26,13 @@
 
 /* Don't do the check for Visual Studio 2005, it's safe here */
 #if defined(_MSC_VER)
+#ifdef _WIN32_WCE
+#define WIN32_LEAN_AND_MEAN
+#include <windows.h>
+#else
 #include <intrin.h>
 #endif
+#endif /* _MSC_VER */
 
 /* This function is where all the magic happens... */
 SDL_bool