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_exp2f.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libm/w_exp2f.c') diff --git a/libm/w_exp2f.c b/libm/w_exp2f.c index 8c337cd98..0bb57878b 100644 --- a/libm/w_exp2f.c +++ b/libm/w_exp2f.c @@ -8,7 +8,7 @@ float exp2f (float x) { -#if __UCLIBC_HAS_FENV__ +#if defined(__UCLIBC_HAS_FENV__) float z = (float) pow(2.0, (double) x); if (__builtin_expect (!isfinite (z) || z == 0, 0) && isfinite (x) && _LIB_VERSION != _IEEE_) @@ -19,4 +19,4 @@ exp2f (float x) #else return (float) pow(2.0, (double) x); #endif -} \ No newline at end of file +} -- cgit v1.2.3