diff options
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); |