diff options
author | Chris Robinson <[email protected]> | 2014-04-17 21:39:51 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2014-04-17 21:39:51 -0700 |
commit | 6c8bf9ec42b74635e05241a769f70ea5572a335c (patch) | |
tree | 462829a2c824adb0a6cd5de39f539c6cb16fbfec /Alc/ALc.c | |
parent | 20e5ec18e1e28b83ecaa588b87973be2cf295e74 (diff) |
Rename althread_once to be more C11-like
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r-- | Alc/ALc.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -737,7 +737,7 @@ enum LogLevel LogLevel = LogError; static ALCboolean TrapALCError = ALC_FALSE; /* One-time configuration init control */ -static althread_once_t alc_config_once = ALTHREAD_ONCE_INIT; +static alonce_flag alc_config_once = AL_ONCE_INIT; /* Default effect that applies to sources that don't have an effect on send 0 */ static ALeffect DefaultEffect; @@ -1139,7 +1139,7 @@ static void alc_initconfig(void) if((str && str[0]) || ConfigValueStr(NULL, "default-reverb", &str)) LoadReverbPreset(str, &DefaultEffect); } -#define DO_INITCONFIG() althread_once(&alc_config_once, alc_initconfig) +#define DO_INITCONFIG() alcall_once(&alc_config_once, alc_initconfig) /************************************************ |