Mercurial > sdl-ios-xcode
comparison 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 |
comparison
equal
deleted
inserted
replaced
5087:e7680e2c9f3c | 5088:c2539ff054c8 |
---|---|
24 #include "SDL_atomic.h" | 24 #include "SDL_atomic.h" |
25 #include "SDL_timer.h" | 25 #include "SDL_timer.h" |
26 | 26 |
27 /* Don't do the check for Visual Studio 2005, it's safe here */ | 27 /* Don't do the check for Visual Studio 2005, it's safe here */ |
28 #if defined(_MSC_VER) | 28 #if defined(_MSC_VER) |
29 #ifdef _WIN32_WCE | |
30 #define WIN32_LEAN_AND_MEAN | |
31 #include <windows.h> | |
32 #else | |
29 #include <intrin.h> | 33 #include <intrin.h> |
30 #endif | 34 #endif |
35 #endif /* _MSC_VER */ | |
31 | 36 |
32 /* This function is where all the magic happens... */ | 37 /* This function is where all the magic happens... */ |
33 SDL_bool | 38 SDL_bool |
34 SDL_AtomicTryLock(SDL_SpinLock *lock) | 39 SDL_AtomicTryLock(SDL_SpinLock *lock) |
35 { | 40 { |