From a4199b808fd678f74935d540490eae9dc78a9ffe Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 13 Dec 2016 16:39:58 +0200 Subject: Fix thread safety issue --- butl/utility.cxx | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'butl/utility.cxx') 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 } -- cgit v1.1