diff options
author | Kai Tietz <ktietz@redhat.com> | 2013-01-30 16:52:35 +0000 |
---|---|---|
committer | Kai Tietz <ktietz@redhat.com> | 2013-01-30 16:52:35 +0000 |
commit | 3371f4c71497ebd24c148a80f5b5ace19f630c37 (patch) | |
tree | 3a05cd1dea178b429494075f8d525d045e015ae5 /include/sha1.h | |
parent | 077277f22cefdeb4c66bb1ffcee5493fdd16d703 (diff) | |
download | newlib-3371f4c71497ebd24c148a80f5b5ace19f630c37.zip newlib-3371f4c71497ebd24c148a80f5b5ace19f630c37.tar.gz newlib-3371f4c71497ebd24c148a80f5b5ace19f630c37.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/sha1.h')
-rw-r--r-- | include/sha1.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/sha1.h b/include/sha1.h index 5473f91..4da5c37 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 |