summaryrefslogtreecommitdiff
path: root/lib/md2.h
diff options
context:
space:
mode:
authorPeter Simons <simons@cryp.to>2009-07-21 15:22:24 +0200
committerJim Meyering <meyering@redhat.com>2009-07-22 15:16:35 +0200
commite89d33fe93612a3e0024c5d2d3751c3f722de939 (patch)
tree30ec20500d92b9db5bec10fef5a5b2c81047706b /lib/md2.h
parentabc4e3f768914ecc82270adfccef5f3f7777ea98 (diff)
downloadgnulib-e89d33fe93612a3e0024c5d2d3751c3f722de939.tar.gz
C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
* lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope. * lib/md4.h: Likewise. * lib/md5.h: Likewise. * lib/sha1.h: Likewise. * lib/sha256.h: Likewise. * lib/sha512.h: Likewise.
Diffstat (limited to 'lib/md2.h')
-rw-r--r--lib/md2.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/md2.h b/lib/md2.h
index 401604ef1a..3535e29dde 100644
--- a/lib/md2.h
+++ b/lib/md2.h
@@ -22,6 +22,10 @@
# include <stdio.h>
# include <stddef.h>
+# ifdef __cplusplus
+extern "C" {
+# endif
+
# define MD2_DIGEST_SIZE 16
/* Structure to save state of computation between the single steps. */
@@ -73,4 +77,8 @@ extern int md2_stream (FILE *stream, void *resblock);
digest. */
extern void *md2_buffer (const char *buffer, size_t len, void *resblock);
+# ifdef __cplusplus
+}
+# endif
+
#endif