aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/node.c8
1 files 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 <float.h>
#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