aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/serd_test.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/serd_test.c b/tests/serd_test.c
index 5e37824c..259f244a 100644
--- a/tests/serd_test.c
+++ b/tests/serd_test.c
@@ -25,6 +25,11 @@
#define USTR(s) ((const uint8_t*)(s))
+#ifdef _WIN32
+# define INFINITY (DBL_MAX + DBL_MAX)
+# define NAN (INFINITY - INFINITY)
+#endif
+
static int
failure(const char* fmt, ...)
{