Browse Source

fix: windows build failure about defining nan

pull/518/head
Use 4 years ago
parent
commit
9931900768
  1. 4
      cJSON.c

4
cJSON.c

@ -78,8 +78,12 @@
#endif
#ifndef NAN
#ifdef _WIN32
#define NAN sqrt(-1.0)
#else
#define NAN 0.0/0.0
#endif
#endif
typedef struct {
const unsigned char *json;

Loading…
Cancel
Save