summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2000-09-06 06:10:12 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2000-09-06 06:10:12 +0000
commitd8d718ebbd0fad136c69cd60b2707851b56ea6d9 (patch)
treef27558379e3f5f7ad2f4f5a57551fdd05fd71fcd /include
parent05d2037dcade9fdd1a255d0facf1a668c1d5c297 (diff)
downloadgcc-d8d718ebbd0fad136c69cd60b2707851b56ea6d9.tar.gz
John David Anglin <dave@hiauly1.hia.nrc.ca>
* md5.h (md5_uint32): Choose via INT_MAX instead of UINT_MAX. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@36181 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'include')
-rw-r--r--include/ChangeLog4
-rw-r--r--include/md5.h16
2 files changed, 10 insertions, 10 deletions
diff --git a/include/ChangeLog b/include/ChangeLog
index 5a541b610bc..95a00be6eef 100644
--- a/include/ChangeLog
+++ b/include/ChangeLog
@@ -1,3 +1,7 @@
+2000-09-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
+
+ * md5.h (md5_uint32): Choose via INT_MAX instead of UINT_MAX.
+
2000-09-04 Alex Samuel <samuel@codesourcery.com>
* dyn-string.h: Adjust formatting.
diff --git a/include/md5.h b/include/md5.h
index ad97efc3213..0840b31b458 100644
--- a/include/md5.h
+++ b/include/md5.h
@@ -38,28 +38,24 @@
# include <sys/types.h>
typedef u_int32_t md5_uint32;
#else
-# if defined __STDC__ && __STDC__
-# define UINT_MAX_32_BITS 4294967295U
-# else
-# define UINT_MAX_32_BITS 0xFFFFFFFF
-# endif
+# define INT_MAX_32_BITS 2147483647
/* If UINT_MAX isn't defined, assume it's a 32-bit type.
This should be valid for all systems GNU cares about because
that doesn't include 16-bit systems, and only modern systems
(that certainly have <limits.h>) have 64+-bit integral types. */
-# ifndef UINT_MAX
-# define UINT_MAX UINT_MAX_32_BITS
+# ifndef INT_MAX
+# define INT_MAX INT_MAX_32_BITS
# endif
-# if UINT_MAX == UINT_MAX_32_BITS
+# if INT_MAX == INT_MAX_32_BITS
typedef unsigned int md5_uint32;
# else
-# if USHRT_MAX == UINT_MAX_32_BITS
+# if SHRT_MAX == INT_MAX_32_BITS
typedef unsigned short md5_uint32;
# else
-# if ULONG_MAX == UINT_MAX_32_BITS
+# if LONG_MAX == INT_MAX_32_BITS
typedef unsigned long md5_uint32;
# else
/* The following line is intended to evoke an error.