summaryrefslogtreecommitdiff
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
commite9a0b6ea1993a95e16ff73d58fd9029f2dd8b900 (patch)
treeea5f247dcd273cb7af8664780151ce08a5302da7
parentd11c67f8e6b791c6dd2aac2d1f708cce358e51e4 (diff)
downloadgdb-e9a0b6ea1993a95e16ff73d58fd9029f2dd8b900.tar.gz
* md5.h: Add extern "C" when compiled with C++.
-rw-r--r--include/ChangeLog4
-rw-r--r--include/md5.h8
2 files changed, 12 insertions, 0 deletions
diff --git a/include/ChangeLog b/include/ChangeLog
index 7e1bf2049eb..8b5630d0297 100644
--- a/include/ChangeLog
+++ b/include/ChangeLog
@@ -1,3 +1,7 @@
+2008-03-24 Ian Lance Taylor <iant@google.com>
+
+ * md5.h: Add extern "C" when compiled with C++.
+
2008-03-21 Ian Lance Taylor <iant@google.com>
* filenames.h: Add extern "C" when compiled with C++.
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