*** ./json_tokener.c.ORIG Fri Dec 15 11:49:48 2017 --- ./json_tokener.c Fri Dec 15 11:51:32 2017 *************** *** 34,39 **** --- 34,43 ---- #include "json_util.h" #include "strdup_compat.h" + #ifdef _AIX + #include + #endif + #ifdef HAVE_LOCALE_H #include #endif /* HAVE_LOCALE_H */ *************** *** 52,58 **** /* Use C99 NAN by default; if not available, nan("") should work too. */ #ifndef NAN ! #define NAN nan("") #endif /* !NAN */ static const char json_null_str[] = "null"; --- 56,63 ---- /* Use C99 NAN by default; if not available, nan("") should work too. */ #ifndef NAN ! //#define NAN nan("") ! #define NAN strtod("NAN()", NULL) #endif /* !NAN */ static const char json_null_str[] = "null";