]> granicus.if.org Git - json-c/commitdiff
Issue #351: don't redefine SIZE_T_MAX if it's already defined.
authorEric Haszlakiewicz <erh+git@nimenees.com>
Thu, 31 Aug 2017 03:35:56 +0000 (23:35 -0400)
committerEric Haszlakiewicz <erh+git@nimenees.com>
Thu, 31 Aug 2017 03:35:56 +0000 (23:35 -0400)
arraylist.c

index 8439cc2df0113bbab9f2705fc4f740675f3ae0b5..ddeb8d4eb4ad22ad18465dc1107f3732dab965a6 100644 (file)
@@ -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"