From 2d1c13224f757e780763e205e22fdf0517db82d0 Mon Sep 17 00:00:00 2001 From: Petri Lehtinen Date: Thu, 7 Mar 2024 21:02:55 +0200 Subject: Use sprintf() to determine locale's decimal point This should fix thread safety of encoding and decoding, since localeconv() is not tread safe after all. --- android/jansson_config.h | 4 ---- 1 file changed, 4 deletions(-) (limited to 'android') diff --git a/android/jansson_config.h b/android/jansson_config.h index 618a0da..448010a 100644 --- a/android/jansson_config.h +++ b/android/jansson_config.h @@ -32,10 +32,6 @@ otherwise to 0. */ #define JSON_INTEGER_IS_LONG_LONG 1 -/* If locale.h and localeconv() are available, define to 1, - otherwise to 0. */ -#define JSON_HAVE_LOCALECONV 0 - /* Maximum recursion depth for parsing JSON input. This limits the depth of e.g. array-within-array constructions. */ #define JSON_PARSER_MAX_DEPTH 2048 -- cgit v1.1