diff options
author | Darren Tucker <dtucker@dtucker.net> | 2020-02-09 01:23:35 +0100 |
---|---|---|
committer | Darren Tucker <dtucker@dtucker.net> | 2020-02-09 01:23:35 +0100 |
commit | 14ccfdb7248e33b1dc8bbac1425ace4598e094cb (patch) | |
tree | adf1951a7f3d8137c4b398f28d8da685966adc26 /defines.h | |
parent | typo; reported by Phil Pennock (diff) | |
download | openssh-14ccfdb7248e33b1dc8bbac1425ace4598e094cb.tar.xz openssh-14ccfdb7248e33b1dc8bbac1425ace4598e094cb.zip |
Check if UINT32_MAX is defined before redefining.
Diffstat (limited to '')
-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 |