From e5590a3ea1da6bc3e57651b51b8c356d881a60bd Mon Sep 17 00:00:00 2001 From: Stephen Clark Date: Wed, 17 Mar 2021 17:48:57 -0500 Subject: psxtests: Fix math function build warnings Added conditionals to ensure that long double function tests were only built when newlib has long double math functions. --- testsuites/psxtests/psxhdrs/math/fminl.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'testsuites/psxtests/psxhdrs/math/fminl.c') diff --git a/testsuites/psxtests/psxhdrs/math/fminl.c b/testsuites/psxtests/psxhdrs/math/fminl.c index b8c5dfb349..9a86ee7e63 100644 --- a/testsuites/psxtests/psxhdrs/math/fminl.c +++ b/testsuites/psxtests/psxhdrs/math/fminl.c @@ -35,7 +35,9 @@ #endif #include +#include "has_long_double.h" +#if defined NEWLIB_HAS_LONG_DOUBLE_MATH_FUNCTIONS int test( void ); int test( void ) @@ -48,3 +50,4 @@ int test( void ) return (result); } +#endif -- cgit v1.2.3