summaryrefslogtreecommitdiff
path: root/include/md5.h
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>2008-03-24 23:43:26 +0000
committerIan Lance Taylor <ian@airs.com>2008-03-24 23:43:26 +0000
commit66ce843946526047a4f7c6c57c80e4d27034c479 (patch)
tree76336b1b7cfaf66233a98474bd984e7feda5e095 /include/md5.h
parent11f8f169168b0b15baece9a46d97ca04c71b4a33 (diff)
downloadbinutils-gdb-66ce843946526047a4f7c6c57c80e4d27034c479.tar.gz
* md5.h: Add extern "C" when compiled with C++.
Diffstat (limited to 'include/md5.h')
-rw-r--r--include/md5.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/md5.h b/include/md5.h
index e8eedb96d60..c8602ee1400 100644
--- a/include/md5.h
+++ b/include/md5.h
@@ -21,6 +21,10 @@
#ifndef _MD5_H
#define _MD5_H 1
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#include <stdio.h>
#if defined HAVE_LIMITS_H || _LIBC
@@ -138,4 +142,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