Browse Source

Add long long 64-bit check

tags/json-c-0.13-20171207
Jason King 8 years ago
parent
commit
e3fabe9a44
2 changed files with 5 additions and 0 deletions
  1. +1
    -0
      configure.ac
  2. +4
    -0
      json_object.c

+ 1
- 0
configure.ac 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


+ 4
- 0
json_object.c 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 */



Loading…
Cancel
Save