aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2016-07-31 19:12:21 -0400
committerDavid Robillard <d@drobilla.net>2016-07-31 19:12:21 -0400
commit2279e1fe9945499046209827e7c6da243a69f00c (patch)
tree447d089b76737dfb4beb6990dddd958bc99dd939 /src
parent53b9436cc497c184901f6bb283a578373ed3083b (diff)
downloadserd-2279e1fe9945499046209827e7c6da243a69f00c.tar.gz
serd-2279e1fe9945499046209827e7c6da243a69f00c.tar.bz2
serd-2279e1fe9945499046209827e7c6da243a69f00c.zip
Fix compilation with mingw
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