aboutsummaryrefslogtreecommitdiff
path: root/include/sha1.h
diff options
context:
space:
mode:
authorktietz <ktietz@138bc75d-0d04-0410-961f-82ee72b054a4>2013-01-30 16:50:49 +0000
committerktietz <ktietz@138bc75d-0d04-0410-961f-82ee72b054a4>2013-01-30 16:50:49 +0000
commit9261f5558989af1a893a1d3917aa1bff1dedcf60 (patch)
treeb0a26ff13749e4d1b9ee1a392b13fe8e29e67608 /include/sha1.h
parentd3ae9a110ac24ff00319d33110f1d28837132477 (diff)
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@195579 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'include/sha1.h')
-rw-r--r--include/sha1.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/sha1.h b/include/sha1.h
index 5473f91f412..4da5c37f386 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