aboutsummaryrefslogtreecommitdiffstats
path: root/tests/serd_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/serd_test.c')
-rw-r--r--tests/serd_test.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/serd_test.c b/tests/serd_test.c
index ef1f9388..07464404 100644
--- a/tests/serd_test.c
+++ b/tests/serd_test.c
@@ -25,9 +25,11 @@
#define USTR(s) ((const uint8_t*)(s))
-#ifdef _WIN32
+#ifndef INFINITY
# define INFINITY (DBL_MAX + DBL_MAX)
-# define NAN (INFINITY - INFINITY)
+#endif
+#ifndef NAN
+# define NAN (INFINITY - INFINITY)
#endif
static int