diff options
| author | Bruno Cardoso Lopes <bruno.cardoso@gmail.com> | 2016-12-12 23:06:58 +0000 |
|---|---|---|
| committer | Bruno Cardoso Lopes <bruno.cardoso@gmail.com> | 2016-12-12 23:06:58 +0000 |
| commit | 88458c31e74ea6d32a2f438d7531814875f438dd (patch) | |
| tree | aecde04d5167b56c276cf069e12d0bc716f87974 | |
| parent | ff6a1edfa8e620c3699e00e809905d4d82757d68 (diff) | |
| download | bcm5719-llvm-88458c31e74ea6d32a2f438d7531814875f438dd.tar.gz bcm5719-llvm-88458c31e74ea6d32a2f438d7531814875f438dd.zip | |
Revert "[Headers] Add #include_next for tgmath.h on Darwin"
Reverts r289181: it's currently breaking modules using simd.h in
10.12 SDK.
This reverts commit 6e73e3464e96a4e00492c24aa790d36e1adb5702.
llvm-svn: 289487
| -rw-r--r-- | clang/lib/Headers/tgmath.h | 9 | ||||
| -rw-r--r-- | clang/test/Headers/Inputs/usr/include/tgmath.h | 4 | ||||
| -rw-r--r-- | clang/test/Headers/tgmath-darwin.c | 12 |
3 files changed, 0 insertions, 25 deletions
diff --git a/clang/lib/Headers/tgmath.h b/clang/lib/Headers/tgmath.h index 0b8b5ce277c..318e1185fee 100644 --- a/clang/lib/Headers/tgmath.h +++ b/clang/lib/Headers/tgmath.h @@ -25,14 +25,6 @@ #ifndef __TGMATH_H #define __TGMATH_H -/* - * Allow additional definitions and implementation-defined values on Apple - * platforms. - */ -#if defined(__APPLE__) && __STDC_HOSTED__ && __has_include_next(<tgmath.h>) -# include_next <tgmath.h> -#else - /* C99 7.22 Type-generic math <tgmath.h>. */ #include <math.h> @@ -1379,5 +1371,4 @@ static long double #undef _TG_ATTRS #endif /* __cplusplus */ -#endif /* __has_include_next */ #endif /* __TGMATH_H */ diff --git a/clang/test/Headers/Inputs/usr/include/tgmath.h b/clang/test/Headers/Inputs/usr/include/tgmath.h deleted file mode 100644 index 897962d9e16..00000000000 --- a/clang/test/Headers/Inputs/usr/include/tgmath.h +++ /dev/null @@ -1,4 +0,0 @@ -#ifndef SYS_TGMATH_H -#define SYS_TGMATH_H - -#endif /* SYS_TGMATH_H */ diff --git a/clang/test/Headers/tgmath-darwin.c b/clang/test/Headers/tgmath-darwin.c deleted file mode 100644 index b24b6c0c720..00000000000 --- a/clang/test/Headers/tgmath-darwin.c +++ /dev/null @@ -1,12 +0,0 @@ -// REQUIRES: system-darwin -// RUN: %clang -target x86_64-apple-darwin10 -fsyntax-only -std=c11 -isysroot %S/Inputs %s -#include <tgmath.h> - -// Test the #include_next on tgmath.h works on Darwin. -#ifndef SYS_TGMATH_H - #error "SYS_TGMATH_H not defined" -#endif - -#ifndef __TGMATH_H - #error "__TGMATH_H not defined" -#endif |

