summaryrefslogtreecommitdiff
path: root/defines.h
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@dtucker.net>2019-10-28 16:06:59 +1100
committerDarren Tucker <dtucker@dtucker.net>2019-10-28 16:27:53 +1100
commit2912596aecfcf48e5115c7a906d1e664f7717a4b (patch)
tree08afe73fa8dcabea663c86947671c9fc9467e259 /defines.h
parent7169e31121e8c8cc729b55154deb722ae495b316 (diff)
Define UINT32_MAX if needed.
Diffstat (limited to 'defines.h')
-rw-r--r--defines.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/defines.h b/defines.h
index 7855fbf9..b3a2b43d 100644
--- a/defines.h
+++ b/defines.h
@@ -244,6 +244,9 @@ typedef unsigned short int u_int16_t;
# endif
# if (SIZEOF_INT == 4)
typedef unsigned int u_int32_t;
+# if defined(HAVE_DECL_UINT32_MAX) && (HAVE_DECL_UINT32_MAX == 0)
+# define UINT32_MAX UINT_MAX
+# endif
# else
# error "32 bit int type not found."
# endif