fix: windows build failure about defining nan

This commit is contained in:
Use 2020-10-15 11:52:06 +09:00
parent d2735278ed
commit 9931900768
1 changed files with 4 additions and 0 deletions

View File

@ -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;