<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">diff --git a/clang/lib/Headers/float.h b/clang/lib/Headers/float.h
index c6a6cc08462d..d02531c466f4 100644
--- a/clang/lib/Headers/float.h
+++ b/clang/lib/Headers/float.h
@@ -17,9 +17,13 @@
  * Also fall back on Darwin and AIX to allow additional definitions and
  * implementation-defined values.
  */
-#if (defined(__APPLE__) || defined(__MINGW32__) || defined(_MSC_VER) ||        \
-     defined(_AIX)) &amp;&amp;                                                         \
-    __STDC_HOSTED__ &amp;&amp; __has_include_next(&lt;float.h&gt;)
+#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) ||                       \
+     defined(_AIX)) &amp;&amp;                                                   \
+  __STDC_HOSTED__ &amp;&amp; __has_include_next(&lt;float.h&gt;)
 
 /* Prior to Apple's 10.7 SDK, float.h SDK header used to apply an extra level
  * of #include_next&lt;float.h&gt; to keep Metrowerks compilers happy. Avoid this
</pre></body></html>