diff options
author | Chris Robinson <[email protected]> | 2014-07-22 18:57:51 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2014-07-22 18:57:51 -0700 |
commit | e4b779c492e9ffbfce806ac49acae66ab264a7da (patch) | |
tree | 0ccf89e9157fe9dfa6410192d3ff4897ed1ce4bc /OpenAL32/alError.c | |
parent | a3b1d4a5e20fade26bdfe2b964d8d363aac2acc3 (diff) |
Use generic atomics in more places
Diffstat (limited to 'OpenAL32/alError.c')
-rw-r--r-- | OpenAL32/alError.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenAL32/alError.c b/OpenAL32/alError.c index b557532e..04700d97 100644 --- a/OpenAL32/alError.c +++ b/OpenAL32/alError.c @@ -45,7 +45,7 @@ ALvoid alSetError(ALCcontext *Context, ALenum errorCode) raise(SIGTRAP); #endif } - CompExchangeInt(&Context->LastError, AL_NO_ERROR, errorCode); + ATOMIC_COMPARE_EXCHANGE(ALenum, Context->LastError, AL_NO_ERROR, errorCode); } AL_API ALenum AL_APIENTRY alGetError(void) @@ -68,7 +68,7 @@ AL_API ALenum AL_APIENTRY alGetError(void) return AL_INVALID_OPERATION; } - errorCode = ExchangeInt(&Context->LastError, AL_NO_ERROR); + errorCode = ATOMIC_EXCHANGE(ALenum, Context->LastError, AL_NO_ERROR); ALCcontext_DecRef(Context); |