* md5.h: Add extern "C" when compiled with C++.
authorIan Lance Taylor <ian@airs.com>
Mon, 24 Mar 2008 23:43:26 +0000 (23:43 +0000)
committerIan Lance Taylor <ian@airs.com>
Mon, 24 Mar 2008 23:43:26 +0000 (23:43 +0000)
include/ChangeLog
include/md5.h

index 7e1bf20..8b5630d 100644 (file)
@@ -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++.
index e8eedb9..c8602ee 100644 (file)
 #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