|
@@ -11,10 +11,16 @@
|
|
|
#ifndef _LIBCPP_CONFIG
|
|
|
#define _LIBCPP_CONFIG
|
|
|
|
|
|
-#if !defined(_MSC_VER) || defined(__clang__)
|
|
|
+#if defined(_MSC_VER) && !defined(__clang__)
|
|
|
+#define _LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER
|
|
|
+#endif
|
|
|
+
|
|
|
+#ifndef _LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER
|
|
|
#pragma GCC system_header
|
|
|
#endif
|
|
|
|
|
|
+#ifdef __cplusplus
|
|
|
+
|
|
|
#ifdef __GNUC__
|
|
|
#define _GNUC_VER (__GNUC__ * 100 + __GNUC_MINOR__)
|
|
|
#else
|
|
@@ -526,7 +532,6 @@ using namespace _LIBCPP_NAMESPACE __attribute__((__strong__));
|
|
|
#elif defined(_LIBCPP_MSVC)
|
|
|
|
|
|
#define _LIBCPP_HAS_NO_TEMPLATE_ALIASES
|
|
|
-#define _LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER
|
|
|
#define _LIBCPP_HAS_NO_CONSTEXPR
|
|
|
#define _LIBCPP_HAS_NO_CXX14_CONSTEXPR
|
|
|
#define _LIBCPP_HAS_NO_VARIABLE_TEMPLATES
|
|
@@ -811,4 +816,6 @@ extern "C" void __sanitizer_annotate_contiguous_container(
|
|
|
#define _LIBCPP_HAS_NO_ATOMIC_HEADER
|
|
|
#endif
|
|
|
|
|
|
+#endif // __cplusplus
|
|
|
+
|
|
|
#endif // _LIBCPP_CONFIG
|