diff --git a/include/ws_attributes.h b/include/ws_attributes.h index de0e5da78c..d004280e76 100644 --- a/include/ws_attributes.h +++ b/include/ws_attributes.h @@ -107,7 +107,7 @@ extern "C" { * the major UN*X C compilers support __thread and the major Windows C * compilers support __declspec(thread). */ -#ifdef _WIN32 +#ifdef _MSC_VER #define WS_THREAD_LOCAL __declspec(thread) #else #define WS_THREAD_LOCAL __thread