]> git.ipfire.org Git - thirdparty/json-c.git/commitdiff
Add long long 64-bit check 360/head
authorJason King <jason.brian.king@gmail.com>
Fri, 8 Sep 2017 01:46:06 +0000 (01:46 +0000)
committerJason King <jason.brian.king@gmail.com>
Fri, 8 Sep 2017 01:46:06 +0000 (01:46 +0000)
configure.ac
json_object.c

index 0ebf823213576ef47116e8479168a6417c97027d..d29a387d138a3755a2b9537de5f5a1d5b7036050 100644 (file)
@@ -173,6 +173,7 @@ AX_COMPILE_CHECK_SIZEOF(int)
 AX_COMPILE_CHECK_SIZEOF(long)
 AX_COMPILE_CHECK_SIZEOF(long long)
 AX_COMPILE_CHECK_SIZEOF(size_t, [#include <stdint.h>])
+AX_COMPILE_CHECK_SIZEOF(int64_t, [#include <stdint.h>])
 
 AC_CONFIG_FILES([
 Makefile
index 01ee0a87a340d57966a74b1107e68632ffd621c6..9ffb149d07b50425aadaacf0f2008a56b6aca7a0 100644 (file)
 #include "strdup_compat.h"
 #include "snprintf_compat.h"
 
+#if SIZEOF_LONG_LONG != SIZEOF_INT64_T
+#error "The long long type isn't 64-bits"
+#endif
+
 // Don't define this.  It's not thread-safe.
 /* #define REFCOUNT_DEBUG 1 */