Issue #295: also check if size_t is the size of long long, to help support 64-bit Windows platforms.
This commit is contained in:
@@ -26,6 +26,8 @@
|
|||||||
#define SIZE_T_MAX UINT_MAX
|
#define SIZE_T_MAX UINT_MAX
|
||||||
#elif SIZEOF_SIZE_T == SIZEOF_LONG
|
#elif SIZEOF_SIZE_T == SIZEOF_LONG
|
||||||
#define SIZE_T_MAX ULONG_MAX
|
#define SIZE_T_MAX ULONG_MAX
|
||||||
|
#elif SIZEOF_SIZE_T == SIZEOF_LONG_LONG
|
||||||
|
#define SIZE_T_MAX ULLONG_MAX
|
||||||
#else
|
#else
|
||||||
#error Unable to determine size of size_t
|
#error Unable to determine size of size_t
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -109,6 +109,7 @@ AX_APPEND_COMPILE_FLAGS([-D_GNU_SOURCE -D_REENTRANT])
|
|||||||
|
|
||||||
AX_COMPILE_CHECK_SIZEOF(int)
|
AX_COMPILE_CHECK_SIZEOF(int)
|
||||||
AX_COMPILE_CHECK_SIZEOF(long)
|
AX_COMPILE_CHECK_SIZEOF(long)
|
||||||
|
AX_COMPILE_CHECK_SIZEOF(long long)
|
||||||
AX_COMPILE_CHECK_SIZEOF(size_t, [#include <stdint.h>])
|
AX_COMPILE_CHECK_SIZEOF(size_t, [#include <stdint.h>])
|
||||||
|
|
||||||
AC_CONFIG_FILES([
|
AC_CONFIG_FILES([
|
||||||
|
|||||||
Reference in New Issue
Block a user