summaryrefslogtreecommitdiffstats
path: root/libmd5/md5_loc.h
diff options
context:
space:
mode:
Diffstat (limited to 'libmd5/md5_loc.h')
-rw-r--r--libmd5/md5_loc.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/libmd5/md5_loc.h b/libmd5/md5_loc.h
index 03aeebf..3d6e2b6 100644
--- a/libmd5/md5_loc.h
+++ b/libmd5/md5_loc.h
@@ -30,6 +30,10 @@
#ifndef __MD5_LOC_H__
#define __MD5_LOC_H__
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#define HEX_STRING "0123456789abcdef" /* to convert to hex */
#define BLOCK_SIZE_MASK (MD5_BLOCK_SIZE - 1)
@@ -103,4 +107,8 @@
a += b; \
} while (0)
+#ifdef __cplusplus
+}
+#endif
+
#endif /* ! __MD5_LOC_H__ */