diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2017-09-22 23:32:28 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2017-09-22 23:32:28 +0200 |
commit | c09cd7512491cee1e82c1ad8128ce9fd4bc3f79b (patch) | |
tree | a659ed768d849130ab5780a11b7f791a463a1a91 /libbutl/ft | |
parent | 2a00871f07067f8f9e2de08bb9c8f50e1bf6a650 (diff) |
Initial modularization with both Clang and VC hacks
Note: gave up on VC about half way though.
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 // |