]> granicus.if.org Git - json-c/commitdiff
Issue #295: also check if size_t is the size of long long, to help support 64-bit...
authorEric Haszlakiewicz <erh+git@nimenees.com>
Sun, 8 Jan 2017 03:55:31 +0000 (22:55 -0500)
committerEric Haszlakiewicz <erh+git@nimenees.com>
Sun, 8 Jan 2017 03:55:31 +0000 (22:55 -0500)
arraylist.c
configure.ac

index 0d0106956fdb3bd1958868ff3b507c6641d29d32..e859dfd052e08d9a51c1dd497b9f3dc25cdd4080 100644 (file)
@@ -26,6 +26,8 @@
 #define SIZE_T_MAX UINT_MAX
 #elif SIZEOF_SIZE_T == SIZEOF_LONG
 #define SIZE_T_MAX ULONG_MAX
+#elif SIZEOF_SIZE_T == SIZEOF_LONG_LONG
+#define SIZE_T_MAX ULLONG_MAX
 #else
 #error Unable to determine size of size_t
 #endif
index 64391b4e0fa5e1b2bb917ecba9f49e1b609e1640..9f495affcc31521b19558d10851b5966a306328f 100644 (file)
@@ -109,6 +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(long long)
 AX_COMPILE_CHECK_SIZEOF(size_t, [#include <stdint.h>])
 
 AC_CONFIG_FILES([