mirror of
https://github.com/json-c/json-c.git
synced 2026-04-08 14:59:06 +08:00
Issue #351: don't redefine SIZE_T_MAX if it's already defined.
This commit is contained in:
@@ -22,6 +22,7 @@
|
|||||||
# include <strings.h>
|
# include <strings.h>
|
||||||
#endif /* HAVE_STRINGS_H */
|
#endif /* HAVE_STRINGS_H */
|
||||||
|
|
||||||
|
#ifndef SIZE_T_MAX
|
||||||
#if SIZEOF_SIZE_T == SIZEOF_INT
|
#if SIZEOF_SIZE_T == SIZEOF_INT
|
||||||
#define SIZE_T_MAX UINT_MAX
|
#define SIZE_T_MAX UINT_MAX
|
||||||
#elif SIZEOF_SIZE_T == SIZEOF_LONG
|
#elif SIZEOF_SIZE_T == SIZEOF_LONG
|
||||||
@@ -31,6 +32,7 @@
|
|||||||
#else
|
#else
|
||||||
#error Unable to determine size of size_t
|
#error Unable to determine size of size_t
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "arraylist.h"
|
#include "arraylist.h"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user