Merge pull request #518 from fpnuseis/master

fix: windows build failure about defining nan
This commit is contained in:
Alan Wang 2020-10-16 16:52:10 +08:00 committed by GitHub
commit 488169faca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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