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/erfcl.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'testsuites/psxtests/psxhdrs/math/erfcl.c') diff --git a/testsuites/psxtests/psxhdrs/math/erfcl.c b/testsuites/psxtests/psxhdrs/math/erfcl.c index bea370c94b..9a50718891 100644 --- a/testsuites/psxtests/psxhdrs/math/erfcl.c +++ b/testsuites/psxtests/psxhdrs/math/erfcl.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 ) @@ -47,3 +49,4 @@ int test( void ) return (result); } +#endif -- cgit v1.2.3