aboutsummaryrefslogtreecommitdiff
path: root/butl/utility.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-12-16 16:08:06 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-12-16 16:08:06 +0200
commitbf57209f9e1c9f9f639c2d63c7674c3757750eb5 (patch)
tree77465a98ef25e6dd852fbe574007345a7a22c832 /butl/utility.cxx
parentcc878f4e2b4bc6622742136dcb45e2ad912714f7 (diff)
Work around unexportable thread-local variables on Win32
Diffstat (limited to 'butl/utility.cxx')
-rw-r--r--butl/utility.cxx7
1 files changed, 6 insertions, 1 deletions
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
}