diff options
author | David Robillard <d@drobilla.net> | 2015-10-05 20:55:52 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2015-10-05 20:55:52 +0000 |
commit | 0f59fdf1c16ee00fe7f6430ec1acdd06b84f6e69 (patch) | |
tree | eaf8c6d8997ebdaf5256660965d4c2b39bc88998 | |
parent | abe732ac6de9a6901ec6d307abe63db323c36b68 (diff) | |
download | serd-0f59fdf1c16ee00fe7f6430ec1acdd06b84f6e69.tar.gz serd-0f59fdf1c16ee00fe7f6430ec1acdd06b84f6e69.tar.bz2 serd-0f59fdf1c16ee00fe7f6430ec1acdd06b84f6e69.zip |
Fix warning on Windows
git-svn-id: http://svn.drobilla.net/serd/trunk@497 490d8e77-9747-427b-9fa3-0b8f29cee8a0
-rw-r--r-- | tests/serd_test.c | 6 |
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 |