]> Savannah Git Hosting - gnulib.git/commit
snippet/c++defs: fix real-floating arg functions in C++ mode
authorPedro Alves <palves@redhat.com>
Mon, 14 Nov 2016 23:08:21 +0000 (23:08 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 15 Nov 2016 17:12:53 +0000 (09:12 -0800)
commitc907efdb0747b408dd4d3dfbc9edf7c4086c9b51
tree5ad0c54bd5218917478883344f83395501d18ef9
parentc3b131294aa42b7997cc9b9a0bbb2934aa27fd6c
snippet/c++defs: fix real-floating arg functions in C++ mode

Also, define isfinite, isinf, isnan, signbit in the gnulib
namespace instead of in the global namespace.
* build-aux/snippet/c++defs.h (_GL_BEGIN_NAMESPACE)
(_GL_END_NAMESPACE): New.
* lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Use them.
(isfinite, isinf, isnan, signbit) [__cplusplus &&
GNULIB_NAMESPACE]: Define them in the GNULIB_NAMESPACE namespace
instead of in the global namespace.
* tests/test-math-c++.cc: Check that the isfinite, isinf, isnan,
signbit overloads exist in the GNULIB_NAMESPACE namespace, instead
of in the global namespace.
ChangeLog
build-aux/snippet/c++defs.h
lib/math.in.h
tests/test-math-c++.cc