(empth_init) [_WIN32]: Change flags to global_flags to prevent

scope conflict with the parameter flags.
This commit is contained in:
Ron Koenderink 2005-07-02 14:06:10 +00:00
parent 744d118768
commit 4ea137e887

View file

@ -135,7 +135,7 @@ static unsigned long ulTickAtStart;
static void **ppvUserData; static void **ppvUserData;
/* Global flags. From empth_init parameter. */ /* Global flags. From empth_init parameter. */
static int flags; static int global_flags;
/************************ /************************
@ -153,7 +153,7 @@ loc_debug(const char *pszFmt, ...)
empth_t *pThread = TlsGetValue(dwTLSIndex); empth_t *pThread = TlsGetValue(dwTLSIndex);
char buf[1024]; char buf[1024];
if ((flags & EMPTH_PRINT) != 0) { if ((global_flags & EMPTH_PRINT) != 0) {
/* Ticks are in milliseconds */ /* Ticks are in milliseconds */
ulCurTick = GetTickCount(); ulCurTick = GetTickCount();
@ -356,7 +356,7 @@ empth_init(void **ctx_ptr, int flags)
ulTickAtStart = GetTickCount(); ulTickAtStart = GetTickCount();
ppvUserData = ctx_ptr; ppvUserData = ctx_ptr;
flags = flags; global_flags = flags;
dwTLSIndex = TlsAlloc(); dwTLSIndex = TlsAlloc();
/* Create the thread mutex sem. */ /* Create the thread mutex sem. */