summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psxhdrs/math/copysignl.c
diff options
context:
space:
mode:
authorStephen Clark <stephen.clark@oarcorp.com>2021-03-17 17:48:57 -0500
committerJoel Sherrill <joel@rtems.org>2021-05-05 09:45:56 -0500
commite5590a3ea1da6bc3e57651b51b8c356d881a60bd (patch)
tree90ee892c2babeed34efb2aae30c4ae686a2a99a2 /testsuites/psxtests/psxhdrs/math/copysignl.c
parentstackchk: Fixed 32bit pointers (diff)
downloadrtems-e5590a3ea1da6bc3e57651b51b8c356d881a60bd.tar.bz2
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.
Diffstat (limited to 'testsuites/psxtests/psxhdrs/math/copysignl.c')
-rw-r--r--testsuites/psxtests/psxhdrs/math/copysignl.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/testsuites/psxtests/psxhdrs/math/copysignl.c b/testsuites/psxtests/psxhdrs/math/copysignl.c
index 448d14e710..db5e57e6f6 100644
--- a/testsuites/psxtests/psxhdrs/math/copysignl.c
+++ b/testsuites/psxtests/psxhdrs/math/copysignl.c
@@ -35,7 +35,9 @@
#endif
#include <math.h>
+#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