aboutsummaryrefslogtreecommitdiffstats
path: root/tests
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 /tests
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 '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, ...)
{