X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=include%2Fmd5.h;h=10f234cb7934eb3f581ac0d371412d6e7de786df;hb=deeafabb678e59d8585be6d765c7fbd0e7060b6c;hp=e8eedb96d60b069a3a76ff44a02656aa2d76e1a2;hpb=01f0fe5e0450edf168c1f612feb93cf588e4e7ea;p=deliverable%2Fbinutils-gdb.git diff --git a/include/md5.h b/include/md5.h index e8eedb96d6..10f234cb79 100644 --- a/include/md5.h +++ b/include/md5.h @@ -1,6 +1,6 @@ /* md5.h - Declaration of functions and data types used for MD5 sum computing library functions. - Copyright 1995, 1996, 2000 Free Software Foundation, Inc. + Copyright (C) 1995-2019 Free Software Foundation, Inc. NOTE: The canonical source of this file is maintained with the GNU C Library. Bugs can be reported to bug-glibc@prep.ai.mit.edu. @@ -40,6 +40,11 @@ # include typedef u_int32_t md5_uint32; typedef uintptr_t md5_uintptr; +#elif defined (HAVE_SYS_TYPES_H) && defined (HAVE_STDINT_H) +#include +#include +typedef uint32_t md5_uint32; +typedef uintptr_t md5_uintptr; #else # define INT_MAX_32_BITS 2147483647 @@ -72,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 { @@ -138,4 +147,8 @@ extern int md5_stream (FILE *stream, void *resblock); digest. */ extern void *md5_buffer (const char *buffer, size_t len, void *resblock); +#ifdef __cplusplus +} +#endif + #endif