src/atomic/SDL_spinlock.c
changeset 7828 1451063c8ecd
parent 7191 75360622e65f
child 8093 b43765095a6f
child 8535 e8ee0708ef5c
equal deleted inserted replaced
7827:a03ec8de0426 7828:1451063c8ecd
    18      misrepresented as being the original software.
    18      misrepresented as being the original software.
    19   3. This notice may not be removed or altered from any source distribution.
    19   3. This notice may not be removed or altered from any source distribution.
    20 */
    20 */
    21 #include "SDL_config.h"
    21 #include "SDL_config.h"
    22 
    22 
       
    23 #ifdef __WIN32__
       
    24 #include "../core/windows/SDL_windows.h"
       
    25 #endif
       
    26 
    23 #include "SDL_atomic.h"
    27 #include "SDL_atomic.h"
    24 #include "SDL_mutex.h"
    28 #include "SDL_mutex.h"
    25 #include "SDL_timer.h"
    29 #include "SDL_timer.h"
    26 
    30 
    27 /* Don't do the check for Visual Studio 2005, it's safe here */
       
    28 #ifdef __WIN32__
       
    29 #include "../core/windows/SDL_windows.h"
       
    30 #endif
       
    31 
    31 
    32 /* This function is where all the magic happens... */
    32 /* This function is where all the magic happens... */
    33 SDL_bool
    33 SDL_bool
    34 SDL_AtomicTryLock(SDL_SpinLock *lock)
    34 SDL_AtomicTryLock(SDL_SpinLock *lock)
    35 {
    35 {