From 2279e1fe9945499046209827e7c6da243a69f00c Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 31 Jul 2016 19:12:21 -0400 Subject: Fix compilation with mingw --- src/node.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/node.c b/src/node.c index 2a3a44b2..c25e06a0 100644 --- a/src/node.c +++ b/src/node.c @@ -23,8 +23,12 @@ #include #ifdef _WIN32 -# define isnan(x) _isnan(x) -# define isinf(x) (!_finite(x)) +# ifndef isnan +# define isnan(x) _isnan(x) +# endif +# ifndef isinf +# define isinf(x) (!_finite(x)) +# endif #endif SERD_API -- cgit v1.2.1