]> Savannah Git Hosting - gnulib.git/commit
isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
authorBruno Haible <bruno@clisp.org>
Sat, 22 Oct 2011 11:52:56 +0000 (13:52 +0200)
committerBruno Haible <bruno@clisp.org>
Sat, 22 Oct 2011 11:52:56 +0000 (13:52 +0200)
commita76da24458afd3758386c60ab5c0bed4e100509e
tree50e52cc47aebb83ac3751b2a8c80aed4eea15b9d
parent6c15b5e78263a58f68bf31f5f219d3119132eff8
isfinite, isinf, isnan, signbit: Don't define as a macro in C++.

* lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
_GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
(isfinite, isinf, isnan, signbit): In C++, define as overloaded
functions, not as a macro.
* tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
macros.
(isfinite, isinf, isnan, signbit): Check overloaded functions and
absence of macro.
Suggested by Eric Blake.
Reported by Michael Goffioul <michael.goffioul@gmail.com>.
ChangeLog
lib/math.in.h
tests/test-math-c++.cc