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/utils.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include/libimobiledevice-glue/utils.h') diff --git a/include/libimobiledevice-glue/utils.h b/include/libimobiledevice-glue/utils.h index 355f1da..dd12265 100644 --- a/include/libimobiledevice-glue/utils.h +++ b/include/libimobiledevice-glue/utils.h @@ -31,6 +31,10 @@ #define MAC_EPOCH 978307200 +#ifdef __cplusplus +extern "C" { +#endif + LIMD_GLUE_API char *string_concat(const char *str, ...); LIMD_GLUE_API char *string_append(char *str, ...); LIMD_GLUE_API char *string_build_path(const char *elem, ...); @@ -41,4 +45,8 @@ LIMD_GLUE_API char *generate_uuid(void); LIMD_GLUE_API int buffer_read_from_filename(const char *filename, char **buffer, uint64_t *length); LIMD_GLUE_API int buffer_write_to_filename(const char *filename, const char *buffer, uint64_t length); +#ifdef __cplusplus +} +#endif + #endif -- cgit v1.1-32-gdbae