From 55c24924dd108bc4fc020fbd875839e9c692ffc1 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sun, 1 Oct 2017 03:26:36 +0200 Subject: Additional includes in std.core, new std.regex and std.threading --- std-detect.hxx | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 std-detect.hxx (limited to 'std-detect.hxx') diff --git a/std-detect.hxx b/std-detect.hxx new file mode 100644 index 0000000..b2998b5 --- /dev/null +++ b/std-detect.hxx @@ -0,0 +1,15 @@ +// To detect the standard library we need to include a certain header first. +// +#if defined(__clang__) +# if __has_include(<__config>) // libc++ _LIBCPP_VERSION +# include <__config> +# elif __has_include() // libstdc++ __GLIBCXX__ +# include +# endif +#elif defined(__GNUC__) +# include // libstdc++ __GLIBCXX__ +#endif + +#if !defined(_MSC_VER) && !defined(__GLIBCXX__) && !defined(_LIBCPP_VERSION) +# error unknown standard library implementation +#endif -- cgit v1.1