Browse Source

Windows compatibility fixes.

git-svn-id: http://svn.drobilla.net/serd/trunk@405 490d8e77-9747-427b-9fa3-0b8f29cee8a0
zrythm_meson
David Robillard 10 years ago
parent
commit
a6e3b5126b
  1. 5
      src/node.c
  2. 5
      tests/serd_test.c

5
src/node.c

@ -22,6 +22,11 @@ @@ -22,6 +22,11 @@
#include <math.h>
#include <float.h>
#ifdef _WIN32
# define isnan(x) _isnan(x)
# define isinf(x) (!_finite(x))
#endif
SERD_API
SerdNode
serd_node_from_string(SerdType type, const uint8_t* buf)

5
tests/serd_test.c

@ -25,6 +25,11 @@ @@ -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, ...)
{

Loading…
Cancel
Save