]> git.ipfire.org Git - thirdparty/json-c.git/commitdiff
Use stdint.h to check for size_t size 230/head
authorEmmanuele Bassi <ebassi@gnome.org>
Mon, 23 May 2016 09:18:59 +0000 (10:18 +0100)
committerEmmanuele Bassi <ebassi@gnome.org>
Mon, 23 May 2016 09:20:48 +0000 (10:20 +0100)
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.

configure.ac

index 631464d4ddc2c1bf5ac7afaf32636df01ed79652..820d30e21859331edf604dea606b78acbefce2cc 100644 (file)
@@ -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 <stdint.h>])
 
 AC_CONFIG_FILES([
 Makefile