From a6e3b5126bdb2351d6e21bacd6548e1573ff9b35 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 23 Dec 2012 01:51:13 +0000 Subject: Windows compatibility fixes. git-svn-id: http://svn.drobilla.net/serd/trunk@405 490d8e77-9747-427b-9fa3-0b8f29cee8a0 --- tests/serd_test.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests/serd_test.c') 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, ...) { -- cgit v1.2.1