diff options
author | redi <redi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2016-01-13 16:25:56 +0000 |
---|---|---|
committer | redi <redi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2016-01-13 16:25:56 +0000 |
commit | b23837e02e1018c0c8f11693762a6a41e9831898 (patch) | |
tree | 2670abc20fc46d91ae71b56219618a8ba707940b /libstdc++-v3/config.h.in | |
parent | 7a6ddc0d38d2dfbd875f5382097de72262d5e8c1 (diff) | |
download | gcc-b23837e02e1018c0c8f11693762a6a41e9831898.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@232327 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/config.h.in')
-rw-r--r-- | libstdc++-v3/config.h.in | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libstdc++-v3/config.h.in b/libstdc++-v3/config.h.in index b6cb7aa86e7..5fb0cd3dc26 100644 --- a/libstdc++-v3/config.h.in +++ b/libstdc++-v3/config.h.in @@ -300,6 +300,9 @@ /* Define to 1 if you have the <nan.h> header file. */ #undef HAVE_NAN_H +/* Define if <math.h> defines obsolete isinf and isnan functions. */ +#undef HAVE_OBSOLETE_ISINF_ISNAN + /* Define if poll is available in <poll.h>. */ #undef HAVE_POLL |