diff options
author | MITSUNARI Shigeo <[email protected]> | 2020-08-19 10:26:36 +0900 |
---|---|---|
committer | GitHub <[email protected]> | 2020-08-19 10:26:36 +0900 |
commit | ff0b10e90ad08ffaf9116b7e12ab12e163b13ca5 (patch) | |
tree | 21eb85f0156aec7f93dd1a151e145e8d6542683c | |
parent | c1aea35eb76058240fb4aee27a852193fe4e2b48 (diff) | |
parent | 0c4eafc3f68119ee020043190e97300c72ebae9b (diff) | |
download | xbyak-ff0b10e90ad08ffaf9116b7e12ab12e163b13ca5.tar.gz xbyak-ff0b10e90ad08ffaf9116b7e12ab12e163b13ca5.zip |
Merge pull request #101 from densamoilov/use-thread_local-when-supported
Use thread_local for XBYAK_TLS when supported
-rw-r--r-- | xbyak/xbyak.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/xbyak/xbyak.h b/xbyak/xbyak.h index 41894d0..6896264 100644 --- a/xbyak/xbyak.h +++ b/xbyak/xbyak.h @@ -109,6 +109,8 @@ #endif #if (__cplusplus >= 201103) || (_MSC_VER >= 1800) + #undef XBYAK_TLS + #define XBYAK_TLS thread_local #define XBYAK_VARIADIC_TEMPLATE #endif |