From: Douglas Gregor Date: Sun, 29 Jan 2012 22:47:19 +0000 (+0000) Subject: Alternate fix to the modules failures that doesn't require us to tweak tgmath.h X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e5c9e096a9e7171e8e97ab77610a71610e966f98;p=clang Alternate fix to the modules failures that doesn't require us to tweak tgmath.h git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149210 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Headers/tgmath.h b/lib/Headers/tgmath.h index 0617ae2ddb..1b0b9d24c1 100644 --- a/lib/Headers/tgmath.h +++ b/lib/Headers/tgmath.h @@ -26,7 +26,6 @@ #define __TGMATH_H /* C99 7.22 Type-generic math . */ -#if __has_include() #include /* C++ handles type genericity with overloading in math.h. */ @@ -1355,5 +1354,4 @@ static long double #undef _TG_ATTRS #endif /* __cplusplus */ -#endif /* __has_include() */ #endif /* __TGMATH_H */ diff --git a/test/Modules/compiler_builtins.m b/test/Modules/compiler_builtins.m index 3cf24142d3..52db15c24a 100644 --- a/test/Modules/compiler_builtins.m +++ b/test/Modules/compiler_builtins.m @@ -1,5 +1,5 @@ // RUN: rm -rf %t -// RUN: %clang_cc1 -fmodules -fmodule-cache-path %t -verify %s +// RUN: %clang -fsyntax-only -fmodules -fmodule-cache-path %t -Xclang -verify %s @import __compiler_builtins.float_constants;