summaryrefslogtreecommitdiffstats
path: root/include/libimobiledevice-glue/termcolors.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/libimobiledevice-glue/termcolors.h')
-rw-r--r--include/libimobiledevice-glue/termcolors.h8
1 files changed, 8 insertions, 0 deletions
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