From 2bcfad170970fa3d0b668c0d904f9767e115cdfe Mon Sep 17 00:00:00 2001 From: "Kirill A. Korinsky" Date: Wed, 17 Aug 2022 15:27:50 +0200 Subject: [PATCH] disable Apple libc++ Availability tests if we are using MacPort's installed libc++ then Apple's availablilty tests for libcxx by OS version are no longer applicable --- libcxx/include/__config | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libcxx/include/__config b/libcxx/include/__config index 575147cead42..24cda6ddc31b 100644 --- a/libcxx/include/__config +++ b/libcxx/include/__config @@ -10,6 +10,10 @@ #ifndef _LIBCPP_CONFIG #define _LIBCPP_CONFIG +// for MacPorts, our installed libcxx does not require Apple system +// Availability tests +#define _LIBCPP_DISABLE_AVAILABILITY + #if defined(_MSC_VER) && !defined(__clang__) # if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # define _LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER