Issue #195: use uselocale() instead of setlocale() in json_tokener to behave better in threaded environments.

This commit is contained in:
Eric Haszlakiewicz
2016-07-30 21:34:58 -04:00
parent 7d637362b7
commit 4091b9c87e
3 changed files with 45 additions and 11 deletions

View File

@@ -45,7 +45,7 @@ AC_TYPE_SIZE_T
AC_FUNC_VPRINTF
AC_FUNC_MEMCMP
AC_CHECK_FUNCS([realloc])
AC_CHECK_FUNCS(strcasecmp strdup strerror snprintf vsnprintf vasprintf open vsyslog strncasecmp setlocale)
AC_CHECK_FUNCS(strcasecmp strdup strerror snprintf vsnprintf vasprintf open vsyslog strncasecmp setlocale uselocale)
AC_CHECK_DECLS([INFINITY], [], [], [[#include <math.h>]])
AC_CHECK_DECLS([nan], [], [], [[#include <math.h>]])
AC_CHECK_DECLS([isnan], [], [], [[#include <math.h>]])