Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Not all MinGW compilers have intrin.h, so we'll only use this with Vi…
…sual Studio.

That's actually okay, since gcc has the builtin atomic intrinsics. :)
  • Loading branch information
slouken committed Jan 18, 2011
1 parent 16a928d commit 4f5653f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/SDL_atomic.h
Expand Up @@ -112,7 +112,7 @@ extern DECLSPEC void SDLCALL SDL_AtomicUnlock(SDL_SpinLock *lock);
*/
#ifndef SDL_DISABLE_ATOMIC_INLINE

#if defined(__WIN32__)
#if defined(_MSC_VER)
#include <intrin.h>

#define SDL_AtomicSet(a, v) _InterlockedExchange((long*)&(a)->value, (v))
Expand Down

0 comments on commit 4f5653f

Please sign in to comment.