mirror of
https://github.com/json-c/json-c.git
synced 2026-03-21 05:59:07 +08:00
Add long long 64-bit check
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user