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 /defines.h | |
parent | be075110c735a451fd9d79a864e01e2e0d9f19d2 (diff) |
Check if UINT32_MAX is defined before redefining.
Diffstat (limited to 'defines.h')
-rw-r--r-- | defines.h | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -254,9 +254,11 @@ typedef unsigned int u_int32_t; #define __BIT_TYPES_DEFINED__ #endif -#if defined(HAVE_DECL_UINT32_MAX) && (HAVE_DECL_UINT32_MAX == 0) -# if (SIZEOF_INT == 4) -# define UINT32_MAX UINT_MAX +#ifndef UINT32_MAX +# if defined(HAVE_DECL_UINT32_MAX) && (HAVE_DECL_UINT32_MAX == 0) +# if (SIZEOF_INT == 4) +# define UINT32_MAX UINT_MAX +# endif # endif #endif |