commit | 1b911598d500a9a1e796f5c5e042cbcc39306793 | [log] [tgz] |
---|---|---|
author | MITSUNARI Shigeo <herumi@nifty.com> | Fri Jul 29 05:55:21 2022 +0900 |
committer | MITSUNARI Shigeo <herumi@nifty.com> | Fri Jul 29 05:55:21 2022 +0900 |
tree | 6b8ba3f805f0121e0174676287c50de3c179b97b | |
parent | d224701f4a19704211879bae0eb80070d22b6bb6 [diff] |
mingw uses __thread instead of __declspec(thread)
diff --git a/xbyak/xbyak.h b/xbyak/xbyak.h index 288eb20..ec0f556 100644 --- a/xbyak/xbyak.h +++ b/xbyak/xbyak.h
@@ -77,7 +77,11 @@ #endif #include <windows.h> #include <malloc.h> - #define XBYAK_TLS __declspec(thread) + #ifdef _MSC_VER + #define XBYAK_TLS __declspec(thread) + #else + #define XBYAK_TLS __thread + #endif #elif defined(__GNUC__) #include <unistd.h> #include <sys/mman.h>