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/termcolors.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include/libimobiledevice-glue/termcolors.h') diff --git a/include/libimobiledevice-glue/termcolors.h b/include/libimobiledevice-glue/termcolors.h index d7799c3..afde0a6 100644 --- a/include/libimobiledevice-glue/termcolors.h +++ b/include/libimobiledevice-glue/termcolors.h @@ -74,6 +74,10 @@ #define BG_WHITE "\e[107m" #define BG_DEFAULT "\e[49m" +#ifdef __cplusplus +extern "C" { +#endif + /* automatically called by library constructor */ LIMD_GLUE_API void term_colors_init(); @@ -85,4 +89,8 @@ LIMD_GLUE_API int cprintf(const char* fmt, ...); LIMD_GLUE_API int cfprintf(FILE* stream, const char* fmt, ...); LIMD_GLUE_API int cvfprintf(FILE* stream, const char* fmt, va_list vargs); +#ifdef __cplusplus +} +#endif + #endif -- cgit v1.1-32-gdbae