From 2ffb631069c97e076eab2a2f0b634ce6b3a6d3b2 Mon Sep 17 00:00:00 2001 From: Jeremy Huddleston Sequoia Date: Thu, 20 Jul 2017 17:15:35 -0700 Subject: [PATCH 1008/1008] Fix float.h to work on Snow Leopard and earlier https://bugs.llvm.org/show_bug.cgi?id=31504 https://trac.macports.org/ticket/54135 Signed-off-by: Jeremy Huddleston Sequoia --- lib/Headers/float.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git llvm_release_80/tools/clang/lib/Headers/float.h macports_release_80/tools/clang/lib/Headers/float.h index 56215cd624..5f9bd36db2 100644 --- llvm_release_80/tools/clang/lib/Headers/float.h +++ macports_release_80/tools/clang/lib/Headers/float.h @@ -31,7 +31,12 @@ * Also fall back on Darwin to allow additional definitions and * implementation-defined values. */ -#if (defined(__APPLE__) || (defined(__MINGW32__) || defined(_MSC_VER))) && \ + +#if defined(__APPLE__) && __has_include() +#include +#endif + +#if ((defined(__APPLE__) && __has_include() && (!defined(__MAC_OS_X_VERSION_MAX_ALLOWED) || __MAC_OS_X_VERSION_MAX_ALLOWED >= 101300)) || (defined(__MINGW32__) || defined(_MSC_VER))) && \ __STDC_HOSTED__ && __has_include_next() /* Prior to Apple's 10.7 SDK, float.h SDK header used to apply an extra level -- 2.20.1 (Apple Git-116)