diff options
author | Chris Robinson <[email protected]> | 2018-12-09 15:07:44 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-12-09 15:07:44 -0800 |
commit | 6c8f45b5f6eb2c94427078a4fb527f02d44b9f65 (patch) | |
tree | b367e3f1035290ae0cdafeeb54965c522fce05aa /Alc/alc.cpp | |
parent | d7d98708391e4701f3e27794982af55436ba6d41 (diff) |
Rename a couple global variables
Avoid clashing with an enum name
Diffstat (limited to 'Alc/alc.cpp')
-rw-r--r-- | Alc/alc.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Alc/alc.cpp b/Alc/alc.cpp index b19ed410..424a0eaa 100644 --- a/Alc/alc.cpp +++ b/Alc/alc.cpp @@ -872,11 +872,11 @@ std::recursive_mutex ListLock; /* Mixing thread piority level */ ALint RTPrioLevel; -FILE *LogFile{stderr}; +FILE *gLogFile{stderr}; #ifdef _DEBUG -enum LogLevel LogLevel{LogWarning}; +LogLevel gLogLevel{LogWarning}; #else -enum LogLevel LogLevel{LogError}; +LogLevel gLogLevel{LogError}; #endif /************************************************ @@ -912,7 +912,7 @@ static void alc_initconfig(void) { long lvl = strtol(str, nullptr, 0); if(lvl >= NoLog && lvl <= LogRef) - LogLevel = static_cast<enum LogLevel>(lvl); + gLogLevel = static_cast<LogLevel>(lvl); } str = getenv("ALSOFT_LOGFILE"); @@ -924,7 +924,7 @@ static void alc_initconfig(void) #else FILE *logfile = fopen(str, "wt"); #endif - if(logfile) LogFile = logfile; + if(logfile) gLogFile = logfile; else ERR("Failed to open log file '%s'\n", str); } |