summaryrefslogtreecommitdiffstats
path: root/lib/checksum.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/checksum.h')
-rw-r--r--lib/checksum.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/checksum.h b/lib/checksum.h
index c2764e35f..7d5037143 100644
--- a/lib/checksum.h
+++ b/lib/checksum.h
@@ -1,4 +1,12 @@
+#ifdef __cplusplus
+extern "C" {
+#endif
+
extern int in_cksum(void *, int);
#define FLETCHER_CHECKSUM_VALIDATE 0xffff
extern uint16_t fletcher_checksum(uint8_t *, const size_t len,
const uint16_t offset);
+
+#ifdef __cplusplus
+}
+#endif