From b4d6bb28b35da3c7c3b6a739071fd488f85204a0 Mon Sep 17 00:00:00 2001 From: Todd Bluhm Date: Tue, 3 Nov 2015 18:34:23 -0500 Subject: [PATCH] Make compatible with Alpine linux by using cmath instead of math.h --- src/platformcompat.hh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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