diff options
author | Kai Tietz <kai.tietz@onevision.com> | 2013-01-30 16:52:35 +0000 |
---|---|---|
committer | Kai Tietz <kai.tietz@onevision.com> | 2013-01-30 16:52:35 +0000 |
commit | e5e04ca3576dd5bd224ae8a18337e756d3376258 (patch) | |
tree | ae3274d3a5aec8b889cb24ec5fe0489043d43504 /include/md5.h | |
parent | e30181a58decaecae0e2544b7a489915d3bcc611 (diff) | |
download | gdb-e5e04ca3576dd5bd224ae8a18337e756d3376258.zip gdb-e5e04ca3576dd5bd224ae8a18337e756d3376258.tar.gz gdb-e5e04ca3576dd5bd224ae8a18337e756d3376258.tar.bz2 |
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.
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 b3ff4e1..6da2fef 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 |