diff options
author | Andreas Schwab <schwab@suse.de> | 2016-02-23 16:27:56 +0100 |
---|---|---|
committer | Andreas Schwab <schwab@suse.de> | 2016-02-24 11:59:42 +0100 |
commit | 8dfdd0794a1197864776a8ce5d30a1dc6344f8a4 (patch) | |
tree | 1347a73759073e6e50a43fc9c6308f74c9e9f460 /math/test-math-isinff.cc | |
parent | b2e722855b4599cdcc5dfc98e9d28e3825ecbe33 (diff) | |
download | glibc-8dfdd0794a1197864776a8ce5d30a1dc6344f8a4.tar glibc-8dfdd0794a1197864776a8ce5d30a1dc6344f8a4.tar.gz glibc-8dfdd0794a1197864776a8ce5d30a1dc6344f8a4.tar.bz2 glibc-8dfdd0794a1197864776a8ce5d30a1dc6344f8a4.zip |
Don't use long double math functions if NO_LONG_DOUBLE
Diffstat (limited to 'math/test-math-isinff.cc')
-rw-r--r-- | math/test-math-isinff.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/math/test-math-isinff.cc b/math/test-math-isinff.cc index 195d753f0e..ecff1dc46a 100644 --- a/math/test-math-isinff.cc +++ b/math/test-math-isinff.cc @@ -30,12 +30,17 @@ do_test (void) header fix this test will not compile. */ if (isinff (1.0f) || !isinff (INFINITY) +#ifndef NO_LONG_DOUBLE || isinfl (1.0L) || !isinfl (INFINITY) +#endif || isnanf (2.0f) || !isnanf (NAN) +#ifndef NO_LONG_DOUBLE || isnanl (2.0L) - || !isnanl (NAN)) + || !isnanl (NAN) +#endif + ) { printf ("FAIL: Failed to call is* functions.\n"); exit (1); |