Add long long 64-bit check

This commit is contained in:
Jason King
2017-09-08 01:46:06 +00:00
parent 5355d387e9
commit e3fabe9a44
2 changed files with 5 additions and 0 deletions

View 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

View File

@@ -33,6 +33,10 @@
#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 */