aboutsummaryrefslogtreecommitdiffstats
path: root/src/node.c
diff options
context:
space:
mode:
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)