diff options
-rw-r--r-- | lib/gthreads.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/gthreads.h b/lib/gthreads.h index 5887d46ba5..ec2e4db91c 100644 --- a/lib/gthreads.h +++ b/lib/gthreads.h @@ -26,6 +26,8 @@ # include <threads.h> #elif defined(__GNUC__) # define _Thread_local __thread +#elif defined(_MSC_VER) +# define _Thread_local __declspec(thread) #else # error Unsupported platform #endif |