diff options
Diffstat (limited to 'boost/math/tools/config.hpp')
-rw-r--r-- | boost/math/tools/config.hpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/boost/math/tools/config.hpp b/boost/math/tools/config.hpp index 75d29b646e..32375e6a6e 100644 --- a/boost/math/tools/config.hpp +++ b/boost/math/tools/config.hpp @@ -442,8 +442,16 @@ namespace boost{ namespace math{ #endif -#endif // BOOST_MATH_TOOLS_CONFIG_HPP +// +// Thread local storage: +// +#if !defined(BOOST_NO_CXX11_THREAD_LOCAL) && !defined(BOOST_INTEL) +# define BOOST_MATH_THREAD_LOCAL thread_local +#else +# define BOOST_MATH_THREAD_LOCAL +#endif +#endif // BOOST_MATH_TOOLS_CONFIG_HPP |