PR c++/16597
[deliverable/binutils-gdb.git] / include / md5.h
index c8602ee140033f7894720f5b0cc93acd64a2e6b4..6da2fefe16111371306705a6e71a3abfadafced2 100644 (file)
 #ifndef _MD5_H
 #define _MD5_H 1
 
-#ifdef __cplusplus
-extern "C" {
-#endif
-
 #include <stdio.h>
 
 #if defined HAVE_LIMITS_H || _LIBC
@@ -44,6 +40,11 @@ extern "C" {
 # 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
 
@@ -76,6 +77,10 @@ typedef uintptr_t md5_uintptr;
 typedef unsigned long int md5_uintptr;
 #endif
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /* Structure to save state of computation between the single steps.  */
 struct md5_ctx
 {
This page took 0.025987 seconds and 4 git commands to generate.