-
Committer:
Raphael Kubo da Costa
-
Date:
2013-07-15 19:27:42 UTC
-
Revision ID:
git-v1:6f8c665a1ac91d636d219d8b2e8fce28b3f22ad7
Use math.h instead of cmath.
Also known as "let's try to prevent the #ifdef madness before it grows too
wild".
`isinf' and `isnan' are macros in C99, are not mentioned in C++03 and are
regular functions in C++11 (some C++ standard libraries such as GNU's
libstdc++ do implement those functions in C++98 and C++03 mode).
Simplify the current checks by unconditionally using math.h instead: this
allows us not to care about whether the `std' namespace is required and
assumes both `isinf' and `isnan' are macros, which are implemented when
undefined.
CCBUG: 320803
REVIEW: 111509