diff options
author | Stephen Clark <stephen.clark@oarcorp.com> | 2021-03-17 17:48:57 -0500 |
---|---|---|
committer | Joel Sherrill <joel@rtems.org> | 2021-05-05 09:45:56 -0500 |
commit | e5590a3ea1da6bc3e57651b51b8c356d881a60bd (patch) | |
tree | 90ee892c2babeed34efb2aae30c4ae686a2a99a2 /testsuites/psxtests/psxhdrs/math/rintl.c | |
parent | stackchk: Fixed 32bit pointers (diff) | |
download | rtems-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/rintl.c')
-rw-r--r-- | testsuites/psxtests/psxhdrs/math/rintl.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/testsuites/psxtests/psxhdrs/math/rintl.c b/testsuites/psxtests/psxhdrs/math/rintl.c index 3f6a850e9d..4fbd5cfa3f 100644 --- a/testsuites/psxtests/psxhdrs/math/rintl.c +++ b/testsuites/psxtests/psxhdrs/math/rintl.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 |