aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/helpers.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2011-08-29 21:30:12 -0700
committerChris Robinson <[email protected]>2011-08-29 21:30:12 -0700
commit7408396fd4bc1e99c1f8bd66006c5587362a5d8e (patch)
treec01e5440dcfe31efa4eda1c001386b68659c554e /Alc/helpers.c
parentda081b81c425805eef5b3d4a07c7a213490e04b7 (diff)
Use a generic int type to handle enum swaps
Diffstat (limited to 'Alc/helpers.c')
-rw-r--r--Alc/helpers.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/helpers.c b/Alc/helpers.c
index 265c8210..90bec01c 100644
--- a/Alc/helpers.c
+++ b/Alc/helpers.c
@@ -268,13 +268,13 @@ void SetRTPriority(void)
static void Lock(volatile ALenum *l)
{
- while(Exchange_ALenum(l, AL_TRUE) == AL_TRUE)
+ while(ExchangeInt(l, AL_TRUE) == AL_TRUE)
Sleep(0);
}
static void Unlock(volatile ALenum *l)
{
- Exchange_ALenum(l, AL_FALSE);
+ ExchangeInt(l, AL_FALSE);
}
void ReadLock(RWLock *lock)