]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Don't use long double math functions if NO_LONG_DOUBLE
authorAndreas Schwab <schwab@suse.de>
Tue, 23 Feb 2016 15:27:56 +0000 (16:27 +0100)
committerMike Frysinger <vapier@gentoo.org>
Mon, 7 Mar 2016 16:40:13 +0000 (11:40 -0500)
(cherry picked from commit 591b7e37e6be2a2d6672b683ba1191095b10d6d5)

math/test-math-isinff.cc

index 195d753f0ee357b26080036862fbbf6a56675932..ecff1dc46a0e82a18143736ba6950221b42fce7e 100644 (file)
@@ -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);