src/atomic/SDL_spinlock.c
changeset 5086 c2539ff054c8
parent 5073 1e94e68525d5
child 5090 327f181542f1
equal deleted inserted replaced
5085:e7680e2c9f3c 5086: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 {