summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psxhdrs/math/nextafterl.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/nextafterl.c
parentcd5fd85730e5c6cacf169cd8a005e129c8ef1200 (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/nextafterl.c')
-rw-r--r--testsuites/psxtests/psxhdrs/math/nextafterl.c3
1 files changed, 3 insertions, 0 deletions
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 <math.h>
+#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