Chg: android adaptions from @xianglin1998

This commit is contained in:
iceman1001 2020-04-16 16:46:09 +02:00
commit 1bf32aad90
4 changed files with 18 additions and 6 deletions

View file

@ -33,9 +33,13 @@
#define JSON_INTEGER_IS_LONG_LONG 1
/* If locale.h and localeconv() are available, define to 1,
otherwise to 0. */
otherwise to 0. tips: android don't support localeconv()
*/
#if defined(__ANDROID__) || defined(ANDROID)
#define JSON_HAVE_LOCALECONV 0
#else
#define JSON_HAVE_LOCALECONV 1
#endif
/* If __atomic builtins are available they will be used to manage
reference counts of json_t. */
#define JSON_HAVE_ATOMIC_BUILTINS 1