From: Emmanuele Bassi Date: Mon, 23 May 2016 09:18:59 +0000 (+0100) Subject: Use stdint.h to check for size_t size X-Git-Tag: json-c-0.13-20171207~158^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F230%2Fhead;p=thirdparty%2Fjson-c.git Use stdint.h to check for size_t size If we use json_inttypes.h we are going to fail when builddir != srcdir, and since JSON_C_HAVE_INTTYPES_H is defined after the configure script has run, including json_inttypes.h would be the equivalent on including stdint.h anyway. This fixes the build of json-c in the GNOME Continuous builder. --- diff --git a/configure.ac b/configure.ac index 631464d4..820d30e2 100644 --- a/configure.ac +++ b/configure.ac @@ -109,7 +109,7 @@ AX_APPEND_COMPILE_FLAGS([-D_GNU_SOURCE -D_REENTRANT]) AX_COMPILE_CHECK_SIZEOF(int) AX_COMPILE_CHECK_SIZEOF(long) -AX_COMPILE_CHECK_SIZEOF(size_t, [#include "json_inttypes.h"]) +AX_COMPILE_CHECK_SIZEOF(size_t, [#include ]) AC_CONFIG_FILES([ Makefile