diff options
Diffstat (limited to 'butl/utility.cxx')
-rw-r--r-- | butl/utility.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/butl/utility.cxx b/butl/utility.cxx index d6f418c..032d178 100644 --- a/butl/utility.cxx +++ b/butl/utility.cxx @@ -6,5 +6,12 @@ namespace butl { +#ifndef BUTL_CXX17_UNCAUGHT_EXCEPTIONS +#ifdef BUTL_CXX11_THREAD_LOCAL + thread_local +#else + __thread +#endif bool exception_unwinding_dtor = false; +#endif } |