glibc/no-long-double.patch

24 lines
658 B
Diff
Raw Normal View History

2016-02-24 12:39:39 +01:00
Index: glibc-2.22/math/test-math-isinff.cc
===================================================================
--- glibc-2.22.orig/math/test-math-isinff.cc
+++ glibc-2.22/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);