diff options
Diffstat (limited to 'libbutl/ft')
-rw-r--r-- | libbutl/ft/exception.hxx | 7 | ||||
-rw-r--r-- | libbutl/ft/shared_mutex.hxx | 7 |
2 files changed, 10 insertions, 4 deletions
diff --git a/libbutl/ft/exception.hxx b/libbutl/ft/exception.hxx index a5f6156..14d9ced 100644 --- a/libbutl/ft/exception.hxx +++ b/libbutl/ft/exception.hxx @@ -5,8 +5,11 @@ #ifndef LIBBUTL_FT_EXCEPTION_HXX #define LIBBUTL_FT_EXCEPTION_HXX -#include <cstddef> // _LIBCPP_VERSION -#include <exception> +#if defined(__clang__) +# if __has_include(<__config>) +# include <__config> // _LIBCPP_VERSION +# endif +#endif // __cpp_lib_uncaught_exceptions // diff --git a/libbutl/ft/shared_mutex.hxx b/libbutl/ft/shared_mutex.hxx index 6c6d415..a0346fc 100644 --- a/libbutl/ft/shared_mutex.hxx +++ b/libbutl/ft/shared_mutex.hxx @@ -5,8 +5,11 @@ #ifndef LIBBUTL_FT_SHARED_MUTEX_HXX #define LIBBUTL_FT_SHARED_MUTEX_HXX -#include <cstddef> // _LIBCPP_VERSION -#include <shared_mutex> +#if defined(__clang__) +# if __has_include(<__config>) +# include <__config> // _LIBCPP_VERSION +# endif +#endif // __cpp_lib_shared_mutex // |