aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMITSUNARI Shigeo <[email protected]>2020-08-19 10:26:36 +0900
committerGitHub <[email protected]>2020-08-19 10:26:36 +0900
commitff0b10e90ad08ffaf9116b7e12ab12e163b13ca5 (patch)
tree21eb85f0156aec7f93dd1a151e145e8d6542683c
parentc1aea35eb76058240fb4aee27a852193fe4e2b48 (diff)
parent0c4eafc3f68119ee020043190e97300c72ebae9b (diff)
downloadxbyak-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.h2
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