summaryrefslogtreecommitdiff
path: root/win32/win32.c
diff options
context:
space:
mode:
Diffstat (limited to 'win32/win32.c')
-rw-r--r--win32/win32.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/win32/win32.c b/win32/win32.c
index 027303b8cd..83443dfd8b 100644
--- a/win32/win32.c
+++ b/win32/win32.c
@@ -705,8 +705,9 @@ static st_table *conlist = NULL;
#define conlist_disabled ((st_table *)-1)
#define thread_exclusive(obj) \
- for (bool first = (EnterCriticalSection(&obj##_mutex), true); \
- first; first = (LeaveCriticalSection(&obj##_mutex), false))
+ for (bool exclusive_for_##obj = (EnterCriticalSection(&obj##_mutex), true); \
+ exclusive_for_##obj; \
+ exclusive_for_##obj = (LeaveCriticalSection(&obj##_mutex), false))
static char *uenvarea;