Use ::isinf and ::isnan if libc defines them
authorJonathan Wakely <jwakely@redhat.com>
Wed, 13 Jan 2016 16:25:56 +0000 (16:25 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Wed, 13 Jan 2016 16:25:56 +0000 (16:25 +0000)
commit39a1d8c894fe8861719db2c2afd69007ab6cc0f5
tree2670abc20fc46d91ae71b56219618a8ba707940b
parent0b4b6ef2272f7583e5475dd9bcd4acfac5857df1
Use ::isinf and ::isnan if libc defines them

PR libstdc++/48891
* acinclude.m4 (GLIBCXX_CHECK_MATH11_PROTO): Check for obsolete isinf
and isnan functions.
* config.h.in: Regenerate.
* configure: Regenerate.
* include/c_global/cmath (isinf(double), isnan(double))
[_GLIBCXX_HAVE_OBSOLETE_ISINF_ISNAN]: Import via using-directive.
* testsuite/26_numerics/headers/cmath/48891.cc: New.

From-SVN: r232327
libstdc++-v3/ChangeLog
libstdc++-v3/acinclude.m4
libstdc++-v3/config.h.in
libstdc++-v3/configure
libstdc++-v3/include/c_global/cmath
libstdc++-v3/testsuite/26_numerics/headers/cmath/48891.cc [new file with mode: 0644]