summaryrefslogtreecommitdiffstats
path: root/lib/Headers
diff options
context:
space:
mode:
authorBruno Cardoso Lopes <bruno.cardoso@gmail.com>2016-12-08 02:13:56 +0000
committerBruno Cardoso Lopes <bruno.cardoso@gmail.com>2016-12-08 02:13:56 +0000
commitf5457ae5ebdeb012f213018a46dfea196ea1a872 (patch)
tree7429da284e3b122bb7e79eaf61c585a6ae6b20a0 /lib/Headers
parentacc4bb8e6635f972b5ae00d961eb68abadcc7120 (diff)
[Headers] Enable #include_next<float.h> on Darwin
Allows darwin targets to provide additional definitions and implementation specifc values for float.h rdar://problem/21961491 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@289018 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Headers')
-rw-r--r--lib/Headers/float.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/Headers/float.h b/lib/Headers/float.h
index a28269ebeb..0f453d87cb 100644
--- a/lib/Headers/float.h
+++ b/lib/Headers/float.h
@@ -27,9 +27,12 @@
/* If we're on MinGW, fall back to the system's float.h, which might have
* additional definitions provided for Windows.
* For more details see http://msdn.microsoft.com/en-us/library/y0ybw9fy.aspx
+ *
+ * Also fall back on Darwin to allow additional definitions and
+ * implementation-defined values.
*/
-#if (defined(__MINGW32__) || defined(_MSC_VER)) && __STDC_HOSTED__ && \
- __has_include_next(<float.h>)
+#if (defined(__APPLE__) || (defined(__MINGW32__) || defined(_MSC_VER))) && \
+ __STDC_HOSTED__ && __has_include_next(<float.h>)
# include_next <float.h>
/* Undefine anything that we'll be redefining below. */