From 8c943e3be880eef40023e52daf43d8e0bc8ab59c Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Tue, 23 Feb 2021 21:26:36 +0900 Subject: Make the flag in thread_exclusive unique --- win32/win32.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'win32/win32.c') 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; -- cgit v1.2.3