From bf57209f9e1c9f9f639c2d63c7674c3757750eb5 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 16 Dec 2016 16:08:06 +0200 Subject: Work around unexportable thread-local variables on Win32 --- butl/utility.cxx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'butl/utility.cxx') diff --git a/butl/utility.cxx b/butl/utility.cxx index 032d178..f64e7c8 100644 --- a/butl/utility.cxx +++ b/butl/utility.cxx @@ -12,6 +12,11 @@ namespace butl #else __thread #endif - bool exception_unwinding_dtor = false; + bool exception_unwinding_dtor_ = false; +#endif + +#ifdef _WIN32 + bool& + exception_unwinding_dtor () {return exception_unwinding_dtor_;} #endif } -- cgit v1.1