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/collection.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include/libimobiledevice-glue/collection.h') diff --git a/include/libimobiledevice-glue/collection.h b/include/libimobiledevice-glue/collection.h index 46ef461..b256cef 100644 --- a/include/libimobiledevice-glue/collection.h +++ b/include/libimobiledevice-glue/collection.h @@ -29,6 +29,10 @@ struct collection { int capacity; }; +#ifdef __cplusplus +extern "C" { +#endif + LIMD_GLUE_API void collection_init(struct collection *col); LIMD_GLUE_API void collection_add(struct collection *col, void *element); LIMD_GLUE_API int collection_remove(struct collection *col, void *element); @@ -51,4 +55,8 @@ LIMD_GLUE_API void collection_copy(struct collection *dest, struct collection *s } \ } while(0); +#ifdef __cplusplus +} +#endif + #endif -- cgit v1.1-32-gdbae