From: Eric Haszlakiewicz Date: Thu, 31 Aug 2017 03:35:56 +0000 (-0400) Subject: Issue #351: don't redefine SIZE_T_MAX if it's already defined. X-Git-Tag: json-c-0.13-20171207~60 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=95dff31951c9388408d29e7ddf9a9edc4ec96dca;p=json-c Issue #351: don't redefine SIZE_T_MAX if it's already defined. --- diff --git a/arraylist.c b/arraylist.c index 8439cc2..ddeb8d4 100644 --- a/arraylist.c +++ b/arraylist.c @@ -22,6 +22,7 @@ # include #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"