about summary refs log tree commit diff
path: root/math
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@suse.de>2016-02-23 16:27:56 +0100
committerAndreas Schwab <schwab@suse.de>2016-02-24 11:59:42 +0100
commit8dfdd0794a1197864776a8ce5d30a1dc6344f8a4 (patch)
tree1347a73759073e6e50a43fc9c6308f74c9e9f460 /math
parentb2e722855b4599cdcc5dfc98e9d28e3825ecbe33 (diff)
downloadglibc-8dfdd0794a1197864776a8ce5d30a1dc6344f8a4.tar.gz
glibc-8dfdd0794a1197864776a8ce5d30a1dc6344f8a4.tar.xz
glibc-8dfdd0794a1197864776a8ce5d30a1dc6344f8a4.zip
Don't use long double math functions if NO_LONG_DOUBLE
Diffstat (limited to 'math')
-rw-r--r--math/test-math-isinff.cc7
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);