summaryrefslogtreecommitdiff
path: root/arraylist.c
diff options
context:
space:
mode:
authorEric Haszlakiewicz <erh+git@nimenees.com>2017-08-30 23:35:56 -0400
committerEric Haszlakiewicz <erh+git@nimenees.com>2017-08-30 23:35:56 -0400
commit95dff31951c9388408d29e7ddf9a9edc4ec96dca (patch)
treed9d1310869fa49f025dd691e52efafcaa9b0267c /arraylist.c
parent447d67d5f310d7275e3113475099bfcb0b184824 (diff)
downloadjson-c-95dff31951c9388408d29e7ddf9a9edc4ec96dca.tar.gz
Issue #351: don't redefine SIZE_T_MAX if it's already defined.
Diffstat (limited to 'arraylist.c')
-rw-r--r--arraylist.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arraylist.c b/arraylist.c
index 8439cc2..ddeb8d4 100644
--- a/arraylist.c
+++ b/arraylist.c
@@ -22,6 +22,7 @@
# include <strings.h>
#endif /* HAVE_STRINGS_H */
+#ifndef SIZE_T_MAX
#if SIZEOF_SIZE_T == SIZEOF_INT
#define SIZE_T_MAX UINT_MAX
#elif SIZEOF_SIZE_T == SIZEOF_LONG
@@ -31,6 +32,7 @@
#else
#error Unable to determine size of size_t
#endif
+#endif
#include "arraylist.h"