diff options
author | Darren Tucker <dtucker@dtucker.net> | 2020-02-09 11:23:35 +1100 |
---|---|---|
committer | Darren Tucker <dtucker@dtucker.net> | 2020-02-09 11:23:35 +1100 |
commit | 14ccfdb7248e33b1dc8bbac1425ace4598e094cb (patch) | |
tree | adf1951a7f3d8137c4b398f28d8da685966adc26 | |
parent | be075110c735a451fd9d79a864e01e2e0d9f19d2 (diff) |
Check if UINT32_MAX is defined before redefining.
-rw-r--r-- | defines.h | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -254,9 +254,11 @@ typedef unsigned int u_int32_t; | |||
254 | #define __BIT_TYPES_DEFINED__ | 254 | #define __BIT_TYPES_DEFINED__ |
255 | #endif | 255 | #endif |
256 | 256 | ||
257 | #if defined(HAVE_DECL_UINT32_MAX) && (HAVE_DECL_UINT32_MAX == 0) | 257 | #ifndef UINT32_MAX |
258 | # if (SIZEOF_INT == 4) | 258 | # if defined(HAVE_DECL_UINT32_MAX) && (HAVE_DECL_UINT32_MAX == 0) |
259 | # define UINT32_MAX UINT_MAX | 259 | # if (SIZEOF_INT == 4) |
260 | # define UINT32_MAX UINT_MAX | ||
261 | # endif | ||
260 | # endif | 262 | # endif |
261 | #endif | 263 | #endif |
262 | 264 | ||