Reported by Martin Storsjö <martin@martin.st> in
<https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00075.html>.
* lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Add more arguments.
- (isfinite, isinf, isnan, signbit): On mingw, use an override through
- '#define', because the inline definitions in the platform's <cmath>
- cannot be overridden in another way.
+ (isfinite, isinf, isnan, signbit): On platforms that use C++ include
+ files from GCC 6 or newer, use an override through '#define', because
+ the inline definitions in the platform's <cmath> cannot be overridden
+ in another way.
2019-08-27 Paul Eggert <eggert@cs.ucla.edu>
# if defined isfinite || defined GNULIB_NAMESPACE
_GL_MATH_CXX_REAL_FLOATING_DECL_1 (isfinite)
# undef isfinite
-# if defined __MINGW32__
- /* This platform's <cmath> defines isfinite through a set of inline
+# if __GNUC__ >= 6 || defined __clang__
+ /* This platform's <cmath> possibly defines isfinite through a set of inline
functions. */
_GL_MATH_CXX_REAL_FLOATING_DECL_2 (isfinite, rpl_isfinite, bool)
# define isfinite rpl_isfinite
# if defined isinf || defined GNULIB_NAMESPACE
_GL_MATH_CXX_REAL_FLOATING_DECL_1 (isinf)
# undef isinf
-# if defined __MINGW32__
- /* This platform's <cmath> defines isinf through a set of inline
+# if __GNUC__ >= 6 || defined __clang__
+ /* This platform's <cmath> possibly defines isinf through a set of inline
functions. */
_GL_MATH_CXX_REAL_FLOATING_DECL_2 (isinf, rpl_isinf, bool)
# define isinf rpl_isinf
# if defined isnan || defined GNULIB_NAMESPACE
_GL_MATH_CXX_REAL_FLOATING_DECL_1 (isnan)
# undef isnan
-# if defined __MINGW32__
- /* This platform's <cmath> defines isnan through a set of inline
+# if __GNUC__ >= 6 || defined __clang__
+ /* This platform's <cmath> possibly defines isnan through a set of inline
functions. */
_GL_MATH_CXX_REAL_FLOATING_DECL_2 (isnan, rpl_isnan, bool)
# define isnan rpl_isnan
# if defined signbit || defined GNULIB_NAMESPACE
_GL_MATH_CXX_REAL_FLOATING_DECL_1 (signbit)
# undef signbit
-# if defined __MINGW32__
- /* This platform's <cmath> defines signbit through a set of inline
+# if __GNUC__ >= 6 || defined __clang__
+ /* This platform's <cmath> possibly defines signbit through a set of inline
functions. */
_GL_MATH_CXX_REAL_FLOATING_DECL_2 (signbit, rpl_signbit, bool)
# define signbit rpl_signbit