summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKai Tietz <kai.tietz@onevision.com>2013-01-30 16:52:34 +0000
committerKai Tietz <kai.tietz@onevision.com>2013-01-30 16:52:34 +0000
commit1bc21036a60cec67a42cc63ec6948a9d318fa873 (patch)
treebc9dfdde3c61f278f069169e1ba7338eab6597a3 /include
parent74fb2a7b2921bb31bd710046152c3dcb9980aee4 (diff)
downloadbinutils-redhat-1bc21036a60cec67a42cc63ec6948a9d318fa873.tar.gz
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')
-rw-r--r--include/ChangeLog8
-rw-r--r--include/md5.h5
-rw-r--r--include/sha1.h5
3 files changed, 18 insertions, 0 deletions
diff --git a/include/ChangeLog b/include/ChangeLog
index 3e6826302d..3d093d733e 100644
--- a/include/ChangeLog
+++ b/include/ChangeLog
@@ -1,3 +1,11 @@
+2013-01-30 Kai Tietz <ktietz@redhat.com>
+
+ 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 <will.newton@imgtec.com>
* dis-asm.h (print_insn_metag): New declaration.
diff --git a/include/md5.h b/include/md5.h
index b3ff4e1453..6da2fefe16 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
diff --git a/include/sha1.h b/include/sha1.h
index 5473f91f41..4da5c37f38 100644
--- a/include/sha1.h
+++ b/include/sha1.h
@@ -39,6 +39,11 @@
# include <sys/types.h>
typedef u_int32_t sha1_uint32;
typedef uintptr_t sha1_uintptr;
+#elif defined (HAVE_SYS_TYPES_H) && defined (HAVE_STDINT_H)
+#include <stdint.h>
+#include <sys/types.h>
+typedef uint32_t sha1_uint32;
+typedef uintptr_t sha1_uintptr;
#else
# define INT_MAX_32_BITS 2147483647