From 440dbbbf615de11acdd8216df0e3676e8efb9ba1 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Fri, 27 Dec 2024 01:55:34 +0100 Subject: Add extern "C" guards to public headers --- include/libimobiledevice-glue/sha.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include/libimobiledevice-glue/sha.h') diff --git a/include/libimobiledevice-glue/sha.h b/include/libimobiledevice-glue/sha.h index 3a00578..98bcd71 100644 --- a/include/libimobiledevice-glue/sha.h +++ b/include/libimobiledevice-glue/sha.h @@ -6,6 +6,10 @@ #include +#ifdef __cplusplus +extern "C" { +#endif + /* LibTomCrypt, modular cryptographic library -- Tom St Denis * * LibTomCrypt is a library that provides various cryptographic @@ -83,4 +87,8 @@ LIMD_GLUE_API int sha384_final(sha384_context * md, unsigned char *out); LIMD_GLUE_API int sha384_update(sha384_context * md, const void *data, size_t inlen); LIMD_GLUE_API int sha384(const unsigned char *message, size_t message_len, unsigned char *out); +#ifdef __cplusplus +} +#endif + #endif -- cgit v1.1-32-gdbae