Skip to content

Commit 74c780d

Browse files
tobiasherzketstenner
authored andcommitted
Fix loguru thread-local storage for MinGW
1 parent d2e8e7c commit 74c780d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

thirdparty/loguru/loguru.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1023,7 +1023,7 @@ namespace loguru
10231023
// Where we store the custom thread name set by `set_thread_name`
10241024
char* thread_name_buffer()
10251025
{
1026-
__declspec( thread ) static char thread_name[LOGURU_THREADNAME_WIDTH + 1] = {0};
1026+
thread_local static char thread_name[LOGURU_THREADNAME_WIDTH + 1] = {0};
10271027
return &thread_name[0];
10281028
}
10291029
#endif // LOGURU_WINTHREADS

0 commit comments

Comments
 (0)