]> Savannah Git Hosting - gnulib.git/commitdiff
math tests: Don't fail if isfinite, isinf, isnan, signbit is a macro.
authorBruno Haible <bruno@clisp.org>
Sun, 8 Dec 2019 14:01:54 +0000 (15:01 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 8 Dec 2019 14:01:54 +0000 (15:01 +0100)
* tests/test-math-c++.cc (isfinite, isinf, isnan, signbit): Use #warning
instead of #error.

ChangeLog
tests/test-math-c++.cc

index d452db231ab037a4aa8a427ca34f612c07331e76..5653d9e78001460f6fa559b25532eabc353c5eb0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2019-12-08  Bruno Haible  <bruno@clisp.org>
+
+       math tests: Don't fail if isfinite, isinf, isnan, signbit is a macro.
+       * tests/test-math-c++.cc (isfinite, isinf, isnan, signbit): Use #warning
+       instead of #error.
+
 2019-12-08  Bruno Haible  <bruno@clisp.org>
 
        Fix compilation errors in C++ mode on FreeBSD.
index 57bfd1be9c572770bd5041a53c9f4f7be42eec6d..190fd49feb4385452e0891755d3199247f3be5ec 100644 (file)
@@ -383,28 +383,28 @@ SIGNATURE_CHECK (GNULIB_NAMESPACE::truncl, long double, (long double));
 
 #if GNULIB_TEST_ISFINITE
 # ifdef isfinite
-#  error "isfinite should not be a macro in C++"
+#  warning "isfinite should not be a macro in C++"
 # endif
 REAL_FLOATING_CHECK (isfinite, bool, (float), bool, (double), bool, (long double));
 #endif
 
 #if GNULIB_TEST_ISINF
 # ifdef isinf
-#  error "isinf should not be a macro in C++"
+#  warning "isinf should not be a macro in C++"
 # endif
 REAL_FLOATING_CHECK (isinf, bool, (float), bool, (double), bool, (long double));
 #endif
 
 #if GNULIB_TEST_ISNAN
 # ifdef isnan
-#  error "isnan should not be a macro in C++"
+#  warning "isnan should not be a macro in C++"
 # endif
 REAL_FLOATING_CHECK (isnan, bool, (float), bool, (double), bool, (long double));
 #endif
 
 #if GNULIB_TEST_SIGNBIT
 # ifdef signbit
-#  error "signbit should not be a macro in C++"
+#  warning "signbit should not be a macro in C++"
 # endif
 REAL_FLOATING_CHECK (signbit, bool, (float), bool, (double), bool, (long double));
 #endif