diff options
Diffstat (limited to 'wasm2c')
-rw-r--r-- | wasm2c/wasm-rt.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/wasm2c/wasm-rt.h b/wasm2c/wasm-rt.h index d3ab3f36..e75065f8 100644 --- a/wasm2c/wasm-rt.h +++ b/wasm2c/wasm-rt.h @@ -51,7 +51,9 @@ extern "C" { #define wasm_rt_unreachable abort #endif -#if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 201112L) +#ifdef _MSC_VER +#define WASM_RT_THREAD_LOCAL __declspec(thread) +#elif defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 201112L) #define WASM_RT_THREAD_LOCAL _Thread_local #else #define WASM_RT_THREAD_LOCAL |