Add a json_c_set_serialization_double_format() function to set the *library-wide* format for how doubles are written to a serialized JSON output.

This commit is contained in:
Eric Haszlakiewicz
2017-06-18 18:04:49 +00:00
parent 8581806558
commit 1a94c70336
5 changed files with 148 additions and 9 deletions

View File

@@ -41,6 +41,18 @@ AC_CHECK_HEADER(inttypes.h,[AC_DEFINE([JSON_C_HAVE_INTTYPES_H],[1],[Public defin
AC_C_CONST
AC_TYPE_SIZE_T
AC_CACHE_CHECK([for __thread support], ac_cv___thread, [dnl
AC_LINK_IFELSE([dnl
AC_LANG_PROGRAM([[#undef __thread
static __thread int a; int foo (int b) { return a + b; }]],
[[exit (foo (0));]])],
ac_cv___thread=yes, ac_cv___thread=no)
])
AS_IF([test "x$ac_cv___thread" != xno],
[AC_DEFINE(HAVE___THREAD, 1, [Have __thread]),
AC_DEFINE(SPEC___THREAD, [__thread], [Specifier for __thread])]
)
# Checks for library functions.
AC_FUNC_VPRINTF
AC_FUNC_MEMCMP