summaryrefslogtreecommitdiffstats
path: root/src/cjson.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cjson.c')
-rw-r--r--src/cjson.c22
1 files changed, 1 insertions, 21 deletions
diff --git a/src/cjson.c b/src/cjson.c
index 02d8d60..46495f4 100644
--- a/src/cjson.c
+++ b/src/cjson.c
@@ -45,9 +45,8 @@
#include <limits.h>
#include <ctype.h>
#include <float.h>
-#ifdef HAVE_STDINT_H
#include <stdint.h>
-#endif
+#include <inttypes.h>
#include <sys/types.h>
#ifdef ENABLE_LOCALES
@@ -90,25 +89,6 @@
#endif
#endif
-#if defined(HAVE_INTTYPES_H)
-# include <inttypes.h>
-#else
-# ifndef PRIu64
-# if sizeof(long) == 8
-# define PRIu64 "lu"
-# else
-# define PRIu64 "llu"
-# endif
-# ifndef PRId64
-# if sizeof(long) == 8
-# define PRId64 "ld"
-# else
-# define PRId64 "lld"
-# endif
-# endif
-# endif
-#endif
-
typedef struct {
const unsigned char *json;
size_t position;