Path: blob/master/thirdparty/doctest/patches/0001-ciso646-version.patch
9906 views
diff --git a/thirdparty/doctest/doctest.h b/thirdparty/doctest/doctest.h1index 52b4a4aa30..4a1e4a09d7 1006442--- a/thirdparty/doctest/doctest.h3+++ b/thirdparty/doctest/doctest.h4@@ -490,13 +490,17 @@ DOCTEST_GCC_SUPPRESS_WARNING_POP5#endif6#endif // DOCTEST_CONFIG_USE_IOSFWD78-// for clang - always include ciso646 (which drags some std stuff) because9-// we want to check if we are using libc++ with the _LIBCPP_VERSION macro in10+// for clang - always include <version> or <ciso646> (which drags some std stuff)11+// because we want to check if we are using libc++ with the _LIBCPP_VERSION macro in12// which case we don't want to forward declare stuff from std - for reference:13// https://github.com/doctest/doctest/issues/12614// https://github.com/doctest/doctest/issues/35615#if DOCTEST_CLANG16+#if DOCTEST_CPLUSPLUS >= 201703L && __has_include(<version>)17+#include <version>18+#else19#include <ciso646>20+#endif21#endif // clang2223#ifdef _LIBCPP_VERSION242526