aboutsummaryrefslogtreecommitdiffstats
path: root/src/node.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-12-23 01:51:13 +0000
committerDavid Robillard <d@drobilla.net>2012-12-23 01:51:13 +0000
commita6e3b5126bdb2351d6e21bacd6548e1573ff9b35 (patch)
tree2b9063af3f58da44e988f90cca3d1032608d7a9f /src/node.c
parent8bf373166744a3c0be6fc6964368269e4fc831a3 (diff)
downloadserd-a6e3b5126bdb2351d6e21bacd6548e1573ff9b35.tar.gz
serd-a6e3b5126bdb2351d6e21bacd6548e1573ff9b35.tar.bz2
serd-a6e3b5126bdb2351d6e21bacd6548e1573ff9b35.zip
Windows compatibility fixes.
git-svn-id: http://svn.drobilla.net/serd/trunk@405 490d8e77-9747-427b-9fa3-0b8f29cee8a0
Diffstat (limited to 'src/node.c')
-rw-r--r--src/node.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/node.c b/src/node.c
index 061903bc..065ff875 100644
--- a/src/node.c
+++ b/src/node.c
@@ -22,6 +22,11 @@
#include <math.h>
#include <float.h>
+#ifdef _WIN32
+# define isnan(x) _isnan(x)
+# define isinf(x) (!_finite(x))
+#endif
+
SERD_API
SerdNode
serd_node_from_string(SerdType type, const uint8_t* buf)