summaryrefslogtreecommitdiffstats
path: root/defines.h
diff options
context:
space:
mode:
Diffstat (limited to 'defines.h')
-rw-r--r--defines.h8
1 files 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