diff options
author | Petri Lehtinen <petri@digip.org> | 2010-08-13 22:06:01 +0300 |
---|---|---|
committer | Petri Lehtinen <petri@digip.org> | 2010-08-13 22:07:20 +0300 |
commit | ffbab6fedd86ee1a0c7884d62fa7233ce9d745d2 (patch) | |
tree | 3c5adc996aa95b68e923d8080b752cab0d0b7db6 /configure.ac | |
parent | 7ce70533c90dc7dfc3570023144547dfb32950e1 (diff) | |
download | jansson-ffbab6fedd86ee1a0c7884d62fa7233ce9d745d2.zip jansson-ffbab6fedd86ee1a0c7884d62fa7233ce9d745d2.tar.gz jansson-ffbab6fedd86ee1a0c7884d62fa7233ce9d745d2.tar.bz2 |
Change the underlying type of JSON integer from long to json_int_t
json_int_t is typedef'd to long long if it's supported, or long
otherwise. There's also some supporting things, like the
JSON_INTEGER_FORMAT macro that expands to the printf() conversion
specifier that corresponds to json_int_t's actual type.
This is a backwards incompatible change.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 0b7e79d..54a307c 100644 --- a/configure.ac +++ b/configure.ac @@ -18,6 +18,13 @@ AC_PROG_LIBTOOL # Checks for typedefs, structures, and compiler characteristics. AC_TYPE_INT32_T +AC_TYPE_LONG_LONG_INT +case $ac_cv_type_long_long_int in + yes) json_have_long_long=1;; + *) json_have_long_long=0;; +esac +AC_SUBST([json_have_long_long]) + AC_C_INLINE case $ac_cv_c_inline in yes) json_inline=inline;; |