<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">From 1756240a138dd99225bc1a4fa2f32606074456ad Mon Sep 17 00:00:00 2001
From: Jeremy Huddleston Sequoia &lt;jeremyhu@apple.com&gt;
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 &lt;jeremyhu@apple.com&gt;
---
 lib/Headers/float.h | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git llvm_master/tools/clang/lib/Headers/float.h macports_master/tools/clang/lib/Headers/float.h
index 0f453d87cb..1db2b28ed7 100644
--- llvm_master/tools/clang/lib/Headers/float.h
+++ macports_master/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))) &amp;&amp; \
+
+#if defined(__APPLE__) &amp;&amp; __has_include(&lt;Availability.h&gt;)
+#include &lt;Availability.h&gt;
+#endif
+
+#if ((defined(__APPLE__) &amp;&amp; __has_include(&lt;Availability.h&gt;) &amp;&amp; (!defined(__MAC_OS_X_VERSION_MAX_ALLOWED) || __MAC_OS_X_VERSION_MAX_ALLOWED &gt;= 101300)) || (defined(__MINGW32__) || defined(_MSC_VER))) &amp;&amp; \
     __STDC_HOSTED__ &amp;&amp; __has_include_next(&lt;float.h&gt;)
 #  include_next &lt;float.h&gt;
 
-- 
2.13.3

</pre></body></html>