diff options
-rw-r--r-- | lib/Headers/float.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/Headers/float.h b/lib/Headers/float.h index 0f453d87cb..502143d4e4 100644 --- a/lib/Headers/float.h +++ b/lib/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. */ |