aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/sph/sph_sha2.h
diff options
context:
space:
mode:
Diffstat (limited to 'libqpdf/sph/sph_sha2.h')
-rw-r--r--libqpdf/sph/sph_sha2.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/libqpdf/sph/sph_sha2.h b/libqpdf/sph/sph_sha2.h
index d5bda731..4bff9cd8 100644
--- a/libqpdf/sph/sph_sha2.h
+++ b/libqpdf/sph/sph_sha2.h
@@ -40,6 +40,10 @@
#ifndef SPH_SHA2_H__
#define SPH_SHA2_H__
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#include <stddef.h>
#include "sph_types.h"
@@ -367,4 +371,8 @@ void sph_sha512_comp(const sph_u64 msg[16], sph_u64 val[8]);
#endif
+#ifdef __cplusplus
+}
+#endif
+
#endif