From 3371f4c71497ebd24c148a80f5b5ace19f630c37 Mon Sep 17 00:00:00 2001 From: Kai Tietz Date: Wed, 30 Jan 2013 16:52:35 +0000 Subject: 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. --- include/ChangeLog | 8 ++++++++ include/md5.h | 5 +++++ include/sha1.h | 5 +++++ 3 files changed, 18 insertions(+) (limited to 'include') diff --git a/include/ChangeLog b/include/ChangeLog index 3e6826302..3d093d733 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,3 +1,11 @@ +2013-01-30 Kai Tietz + + 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. + 2013-01-10 Will Newton * dis-asm.h (print_insn_metag): New declaration. diff --git a/include/md5.h b/include/md5.h index b3ff4e145..6da2fefe1 100644 --- a/include/md5.h +++ b/include/md5.h @@ -40,6 +40,11 @@ # include typedef u_int32_t md5_uint32; typedef uintptr_t md5_uintptr; +#elif defined (HAVE_SYS_TYPES_H) && defined (HAVE_STDINT_H) +#include +#include +typedef uint32_t md5_uint32; +typedef uintptr_t md5_uintptr; #else # define INT_MAX_32_BITS 2147483647 diff --git a/include/sha1.h b/include/sha1.h index 5473f91f4..4da5c37f3 100644 --- a/include/sha1.h +++ b/include/sha1.h @@ -39,6 +39,11 @@ # include typedef u_int32_t sha1_uint32; typedef uintptr_t sha1_uintptr; +#elif defined (HAVE_SYS_TYPES_H) && defined (HAVE_STDINT_H) +#include +#include +typedef uint32_t sha1_uint32; +typedef uintptr_t sha1_uintptr; #else # define INT_MAX_32_BITS 2147483647 -- cgit v1.2.3