diff --git a/include/logging/logging-interceptor.h b/include/logging/logging-interceptor.h index 7bc1ff0..a552afd 100644 --- a/include/logging/logging-interceptor.h +++ b/include/logging/logging-interceptor.h @@ -9,6 +9,10 @@ extern "C" { #endif +#ifdef __cplusplus +extern "C" { +#endif + typedef struct log_Interceptor { log_level level; log_Handler *handler; @@ -38,4 +42,8 @@ log_Interceptor *loggingSubStringInterceptor(char *keywords[], } #endif +#ifdef __cplusplus +} +#endif + #endif // __LOGGING_INTERCEPTOR_H__ \ No newline at end of file