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

This commit is contained in:
Ian Lance Taylor 2008-03-24 23:43:26 +00:00
parent 11f8f16916
commit 66ce843946
2 changed files with 12 additions and 0 deletions

View 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++.

View File

@ -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