[openssh-commits] [openssh] 01/01: Check if UINT32_MAX is defined before redefining.
git+noreply at mindrot.org
git+noreply at mindrot.org
Sun Feb 9 11:24:10 AEDT 2020
This is an automated email from the git hooks/post-receive script.
dtucker pushed a commit to branch master
in repository openssh.
commit 14ccfdb7248e33b1dc8bbac1425ace4598e094cb
Author: Darren Tucker <dtucker at dtucker.net>
Date: Sun Feb 9 11:23:35 2020 +1100
Check if UINT32_MAX is defined before redefining.
---
defines.h | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/defines.h b/defines.h
index 6c816e78..a347a44f 100644
--- a/defines.h
+++ b/defines.h
@@ -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
--
To stop receiving notification emails like this one, please contact
djm at mindrot.org.
More information about the openssh-commits
mailing list