projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
PR c++/16597
[deliverable/binutils-gdb.git]
/
include
/
md5.h
diff --git
a/include/md5.h
b/include/md5.h
index e8eedb96d60b069a3a76ff44a02656aa2d76e1a2..6da2fefe16111371306705a6e71a3abfadafced2 100644
(file)
--- a/
include/md5.h
+++ b/
include/md5.h
@@
-40,6
+40,11
@@
# include <sys/types.h>
typedef u_int32_t md5_uint32;
typedef uintptr_t md5_uintptr;
# 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
#else
# define INT_MAX_32_BITS 2147483647
@@
-72,6
+77,10
@@
typedef uintptr_t md5_uintptr;
typedef unsigned long int md5_uintptr;
#endif
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
{
/* 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);
digest. */
extern void *md5_buffer (const char *buffer, size_t len, void *resblock);
+#ifdef __cplusplus
+}
+#endif
+
#endif
#endif
This page took
0.023558 seconds
and
4
git commands to generate.