OSDN Git Service

PR other/54620
authorktietz <ktietz@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 30 Jan 2013 16:58:10 +0000 (16:58 +0000)
committerktietz <ktietz@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 30 Jan 2013 16:58:10 +0000 (16:58 +0000)
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@195581 138bc75d-0d04-0410-961f-82ee72b054a4

include/ChangeLog
include/md5.h
include/sha1.h

index 3c1d408..2784152 100644 (file)
@@ -1,3 +1,13 @@
+2013-01-30  Kai Tietz  <ktietz@redhat.com>
+
+       Merged from trunk.
+
+       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.
+
 2012-03-01  Release Manager
 
        * GCC 4.6.3 released.
index b3ff4e1..6da2fef 100644 (file)
 # 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
 
index 5473f91..4da5c37 100644 (file)
 # 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