diff options
author | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-03-24 23:41:20 +0000 |
---|---|---|
committer | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-03-24 23:41:20 +0000 |
commit | 4acbb723d2ea6fbe42643fc6605cff0a4e351d3a (patch) | |
tree | edbac13db3fc158fdcc77db75822445858a3952e | |
parent | 939ebcfb6ee64134e61edc5b627b31057161b841 (diff) | |
download | gcc-4acbb723d2ea6fbe42643fc6605cff0a4e351d3a.tar.gz |
* md5.h: Add extern "C" when compiled with C++.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@133495 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | include/ChangeLog | 4 | ||||
-rw-r--r-- | include/md5.h | 8 |
2 files changed, 12 insertions, 0 deletions
diff --git a/include/ChangeLog b/include/ChangeLog index 7cd23728a94..4b94b616fa9 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 |