From 2fcb8f32f339f3a3cb550f10f565d6072f565012 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 24 Jan 2017 08:10:58 +0200 Subject: Redo config as feature test macros --- butl/utility | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'butl/utility') diff --git a/butl/utility b/butl/utility index ac94171..208a840 100644 --- a/butl/utility +++ b/butl/utility @@ -6,15 +6,17 @@ #define BUTL_UTILITY #include -#include // ostream -#include // size_t -#include // move(), forward() -#include // strcmp(), strlen() -#include // exception, uncaught_exception(s)() +#include // ostream +#include // size_t +#include // move(), forward() +#include // strcmp(), strlen() +#include // uncaught_exceptions +#include // exception, uncaught_exception(s)() +#include // thread_local + //#include // hash #include -#include namespace butl { @@ -165,7 +167,7 @@ namespace butl return exception_guard (std::move (f)); } -#ifdef BUTL_CXX17_UNCAUGHT_EXCEPTIONS +#ifdef __cpp_lib_uncaught_exceptions template struct exception_guard { @@ -190,7 +192,7 @@ namespace butl // part of the exception stack unwindining. // extern -#ifdef BUTL_CXX11_THREAD_LOCAL +#ifdef __cpp_thread_local thread_local #else __thread -- cgit v1.1