aboutsummaryrefslogtreecommitdiff
path: root/libbutl/utility.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'libbutl/utility.cxx')
-rw-r--r--libbutl/utility.cxx14
1 files changed, 12 insertions, 2 deletions
diff --git a/libbutl/utility.cxx b/libbutl/utility.cxx
index d6a21c6..c23d3f5 100644
--- a/libbutl/utility.cxx
+++ b/libbutl/utility.cxx
@@ -51,11 +51,21 @@ namespace butl
#else
__thread
#endif
- bool exception_unwinding_dtor_ = false;
+#if defined(__GLIBC__) && \
+ defined(__GLIBC_MINOR__) && \
+ (__GLIBC__ < 2 || __GLIBC__ == 2 && __GLIBC_MINOR__ < 17)
+ int
+#else
+ bool
+#endif
+ exception_unwinding_dtor_ = false;
#ifdef _WIN32
- bool&
+ bool
exception_unwinding_dtor () {return exception_unwinding_dtor_;}
+
+ void
+ exception_unwinding_dtor (bool v) {exception_unwinding_dtor_ = v;}
#endif
#endif