diff --git a/src/platformcompat.hh b/src/platformcompat.hh index fb41fd5..ad49e20 100644 --- a/src/platformcompat.hh +++ b/src/platformcompat.hh @@ -1,8 +1,6 @@ #ifndef __PLATFORMCOMPAT_H #define __PLATFORMCOMPAT_H -#include // round() - #if defined(_MSC_VER) #include //isinf, isnan #include //min @@ -11,10 +9,11 @@ #define FMIN __min #define ROUND(x) floor(x + 0.5) #else -#define ISINF isinf -#define ISNAN isnan +#include // round(), isinf, isnan +#define ISINF std::isinf +#define ISNAN std::isnan #define FMIN fmin #define ROUND round #endif -#endif \ No newline at end of file +#endif