This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/3876: c++ #define INFINITY in cmath
- To: gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, rabid at spylog dot ru
- Subject: Re: c++/3876: c++ #define INFINITY in cmath
- From: aoliva at gcc dot gnu dot org
- Date: 30 Jul 2001 20:52:34 -0000
Synopsis: c++ #define INFINITY in cmath
State-Changed-From-To: open->closed
State-Changed-By: aoliva
State-Changed-When: Mon Jul 30 13:52:34 2001
State-Changed-Why:
INFINITY is specified as a macro in math.h in the C99 Standard, and the C++98 Standard says the contents of <cmath> are the same as those of <math.h> in the C Standard.
Anyway, even if a revision of the C++ Standard rules this macro out of C++, this is not a problem in GCC, but in glibc, which is where the definition of the macro comes from.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=3876&database=gcc