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/nextafterl.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'testsuites/psxtests/psxhdrs/math/nextafterl.c') diff --git a/testsuites/psxtests/psxhdrs/math/nextafterl.c b/testsuites/psxtests/psxhdrs/math/nextafterl.c index 2b0fb54420..428056971e 100644 --- a/testsuites/psxtests/psxhdrs/math/nextafterl.c +++ b/testsuites/psxtests/psxhdrs/math/nextafterl.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 ) @@ -46,3 +48,4 @@ int test( void ) return (result); } +#endif -- cgit v1.2.3