Commit 9bb28c1b by Ian Lance Taylor Committed by Ian Lance Taylor

* md5.h: Add extern "C" when compiled with C++.

From-SVN: r133495
parent 7837ac3c
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> 2008-03-21 Ian Lance Taylor <iant@google.com>
* filenames.h: Add extern "C" when compiled with C++. * filenames.h: Add extern "C" when compiled with C++.
......
...@@ -21,6 +21,10 @@ ...@@ -21,6 +21,10 @@
#ifndef _MD5_H #ifndef _MD5_H
#define _MD5_H 1 #define _MD5_H 1
#ifdef __cplusplus
extern "C" {
#endif
#include <stdio.h> #include <stdio.h>
#if defined HAVE_LIMITS_H || _LIBC #if defined HAVE_LIMITS_H || _LIBC
...@@ -138,4 +142,8 @@ extern int md5_stream (FILE *stream, void *resblock); ...@@ -138,4 +142,8 @@ extern int md5_stream (FILE *stream, void *resblock);
digest. */ digest. */
extern void *md5_buffer (const char *buffer, size_t len, void *resblock); extern void *md5_buffer (const char *buffer, size_t len, void *resblock);
#ifdef __cplusplus
}
#endif
#endif #endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment