From e597ace1fe03767c485c2ed36561eb34e8127b4c Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Wed, 7 Oct 2015 03:30:02 +0000 Subject: [PATCH] builtins: fix build __GNUC__ indicates the GNU compiler, not __GNU__. This got through due to building with clang rather than gcc. llvm-svn: 249516 --- compiler-rt/lib/builtins/int_math.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler-rt/lib/builtins/int_math.h b/compiler-rt/lib/builtins/int_math.h index 26fc23e90014..fc81fb7f0220 100644 --- a/compiler-rt/lib/builtins/int_math.h +++ b/compiler-rt/lib/builtins/int_math.h @@ -48,7 +48,7 @@ */ #if __has_builtin(__builtin_isfinite) # define crt_isfinite(x) __builtin_isfinite((x)) -#elif defined(__GNU__) +#elif defined(__GNUC__) # define crt_isfinite(x) \ __extension__(({ \ __typeof((x)) x_ = (x); \