* modules/isnan-no-c++: New file, based on modules/isnan.
* modules/isnan: Essentially an alias of isnan-no-c++ now.
* modules/isnan-no-c++-tests: Renamed from modules/isnan-tests.
* lib/math.in.h (isnan): Test also GNULIB_ISNAN_NO_CXX.
* m4/math_h.m4 (gl_MATH_H_REQUIRE_DEFAULTS): Initialize
GNULIB_ISNAN_NO_CXX.
* modules/math-h (Makefile.am): Substitute GNULIB_ISNAN_NO_CXX.
+2025-12-19 Bruno Haible <bruno@clisp.org>
+
+ isnan-no-c++: New module.
+ * modules/isnan-no-c++: New file, based on modules/isnan.
+ * modules/isnan: Essentially an alias of isnan-no-c++ now.
+ * modules/isnan-no-c++-tests: Renamed from modules/isnan-tests.
+ * lib/math.in.h (isnan): Test also GNULIB_ISNAN_NO_CXX.
+ * m4/math_h.m4 (gl_MATH_H_REQUIRE_DEFAULTS): Initialize
+ GNULIB_ISNAN_NO_CXX.
+ * modules/math-h (Makefile.am): Substitute GNULIB_ISNAN_NO_CXX.
+
2025-12-19 Bruno Haible <bruno@clisp.org>
isinf-no-c++: New module.
#endif
/* This must come *after* the snippets for GNULIB_ISNANF and GNULIB_ISNANL! */
-#if @GNULIB_ISNAN@
+#if @GNULIB_ISNAN@ || @GNULIB_ISNAN_NO_CXX@
# if @REPLACE_ISNAN@
/* We can't just use the isnanf macro (e.g.) as exposed by
isnanf.h (e.g.) here, because those may end up being macros
sizeof (x) == sizeof (double) ? __builtin_isnan ((double)(x)) : \
__builtin_isnan ((float)(x)))
# endif
-# ifdef __cplusplus
+# if @GNULIB_ISNAN@ && defined __cplusplus
# if defined isnan || defined GNULIB_NAMESPACE
_GL_MATH_CXX_REAL_FLOATING_DECL_1 (isnan)
# undef isnan
# math_h.m4
-# serial 144
+# serial 145
dnl Copyright (C) 2007-2025 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_ISINF])
gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_ISINF_NO_CXX])
gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_ISNAN])
+ gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_ISNAN_NO_CXX])
gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_ISNANF])
gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_ISNAND])
gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_ISNANL])
isnan macro: test for NaN value.
Files:
-m4/isnan.m4
Depends-on:
-isnanf
-isnand
-isnanl
-math-h
-stringeq
-extensions
+isnan-no-c++
configure.ac:
-gl_ISNAN
gl_MATH_MODULE_INDICATOR([isnan])
Makefile.am:
--- /dev/null
+Description:
+isnan macro: test for NaN value.
+
+Files:
+m4/isnan.m4
+
+Depends-on:
+isnanf
+isnand
+isnanl
+math-h
+stringeq
+extensions
+
+configure.ac:
+gl_ISNAN
+gl_MATH_MODULE_INDICATOR([isnan-no-cxx])
+
+Makefile.am:
+
+Include:
+<math.h>
+
+License:
+LGPL
+
+Maintainer:
+Ben Pfaff
-e 's/@''GNULIB_ISINF''@/$(GNULIB_ISINF)/g' \
-e 's/@''GNULIB_ISINF_NO_CXX''@/$(GNULIB_ISINF_NO_CXX)/g' \
-e 's/@''GNULIB_ISNAN''@/$(GNULIB_ISNAN)/g' \
+ -e 's/@''GNULIB_ISNAN_NO_CXX''@/$(GNULIB_ISNAN_NO_CXX)/g' \
-e 's/@''GNULIB_ISNANF''@/$(GNULIB_ISNANF)/g' \
-e 's/@''GNULIB_ISNAND''@/$(GNULIB_ISNAND)/g' \
-e 's/@''GNULIB_ISNANL''@/$(GNULIB_ISNANL)/g' \