diff options
author | Kai Tietz <ktietz@redhat.com> | 2013-01-30 17:50:49 +0100 |
---|---|---|
committer | Kai Tietz <ktietz@gcc.gnu.org> | 2013-01-30 17:50:49 +0100 |
commit | 162b4e41267d991038ff159a28a78388608a99ff (patch) | |
tree | b0a26ff13749e4d1b9ee1a392b13fe8e29e67608 /include/md5.h | |
parent | 44136976f9a52137fdd2f3f1504f057971c723a6 (diff) | |
download | gcc-162b4e41267d991038ff159a28a78388608a99ff.tar.gz |
re PR other/54620 (sha1.c has incorrect math if sizeof(size_t) is 8)
PR other/54620
PR target/39064
* md5.h (md5_uintptr, md5_uint32): Define as uintptr_t/uint32_t if
stdint.h and sys/types.h headers are present.
* sha1.h (sha1_uintptr, sha1_uint32): Likewise.
From-SVN: r195579
Diffstat (limited to 'include/md5.h')
-rw-r--r-- | include/md5.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/md5.h b/include/md5.h index b3ff4e14538..6da2fefe161 100644 --- a/include/md5.h +++ b/include/md5.h @@ -40,6 +40,11 @@ # include <sys/types.h> typedef u_int32_t md5_uint32; typedef uintptr_t md5_uintptr; +#elif defined (HAVE_SYS_TYPES_H) && defined (HAVE_STDINT_H) +#include <stdint.h> +#include <sys/types.h> +typedef uint32_t md5_uint32; +typedef uintptr_t md5_uintptr; #else # define INT_MAX_32_BITS 2147483647 |