Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2008-03-25 02:43:26 +0300
committerIan Lance Taylor <iant@google.com>2008-03-25 02:43:26 +0300
commitf45a8323151de5c5907b7468fc22b62981815ccb (patch)
tree84762d36230b4248edee5d461dafa97c1f3af02e /include/md5.h
parenta9f60378fe5a1ea24471ca9302b6510ee678a695 (diff)
* md5.h: Add extern "C" when compiled with C++.
Diffstat (limited to 'include/md5.h')
-rw-r--r--include/md5.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/md5.h b/include/md5.h
index e8eedb96d..c8602ee14 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