diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2017-09-30 18:20:12 -0400 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2017-09-30 18:20:55 -0400 |
| commit | cd58b400110586bb0d0632dce0f667efbc3dbd88 (patch) | |
| tree | fa0b6571c6c8fbfb8337e1fce54e63fad93f25b3 /c_headers/float.h | |
| parent | ba3d21ca67af0ce47841bc2d0258903ccaf89a75 (diff) | |
| download | zig-cd58b400110586bb0d0632dce0f667efbc3dbd88.tar.gz zig-cd58b400110586bb0d0632dce0f667efbc3dbd88.zip | |
update C headers to clang 5.0.0
Diffstat (limited to 'c_headers/float.h')
| -rw-r--r-- | c_headers/float.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/c_headers/float.h b/c_headers/float.h index 0f453d87cb..502143d4e4 100644 --- a/c_headers/float.h +++ b/c_headers/float.h @@ -33,6 +33,15 @@ */ #if (defined(__APPLE__) || (defined(__MINGW32__) || defined(_MSC_VER))) && \ __STDC_HOSTED__ && __has_include_next(<float.h>) + +/* Prior to Apple's 10.7 SDK, float.h SDK header used to apply an extra level + * of #include_next<float.h> to keep Metrowerks compilers happy. Avoid this + * extra indirection. + */ +#ifdef __APPLE__ +#define _FLOAT_H_ +#endif + # include_next <float.h> /* Undefine anything that we'll be redefining below. */ |
