]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
Check if UINT32_MAX is defined before redefining.
authorDarren Tucker <dtucker@dtucker.net>
Sun, 9 Feb 2020 00:23:35 +0000 (11:23 +1100)
committerDarren Tucker <dtucker@dtucker.net>
Sun, 9 Feb 2020 00:23:35 +0000 (11:23 +1100)
defines.h

index 6c816e78271c0872a7250a55045339ba1f41ec1e..a347a44ff0df19fdf151e04780cb6eab51ba3e79 100644 (file)
--- 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