From dc382b5a91dec9f29e51b0bf10f4c4df2a276b9b Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Tue, 2 Jan 2018 17:50:31 +0100 Subject: quieten compiler warnings when __UCLIBC_HAS_FENV__ isn't defined --- libm/w_tgammaf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libm/w_tgammaf.c') diff --git a/libm/w_tgammaf.c b/libm/w_tgammaf.c index 812e7d5b6..181a9ab91 100644 --- a/libm/w_tgammaf.c +++ b/libm/w_tgammaf.c @@ -15,14 +15,14 @@ #include #include "math_private.h" -#if __UCLIBC_HAS_FENV__ +#if defined(__UCLIBC_HAS_FENV__) #include #endif float tgammaf(float x) { -#if __UCLIBC_HAS_FENV__ +#if defined(__UCLIBC_HAS_FENV__) float y = (float) __ieee754_tgamma((double)x); if(__builtin_expect (!isfinite (y) || y == 0, 0) -- cgit v1.2.3