From a9c2116facb523d318bd029358ca9090e77cfe23 Mon Sep 17 00:00:00 2001 From: Azat Khuzhin Date: Tue, 14 Mar 2017 01:06:10 +0300 Subject: [PATCH] log-internal: missing extern "C" --- log-internal.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/log-internal.h b/log-internal.h index 97d510fc..4c927afc 100644 --- a/log-internal.h +++ b/log-internal.h @@ -29,6 +29,10 @@ #include "event2/util.h" +#ifdef __cplusplus +extern "C" { +#endif + #ifdef __GNUC__ #define EV_CHECK_FMT(a,b) __attribute__((format(printf, a, b))) #define EV_NORETURN __attribute__((noreturn)) @@ -84,4 +88,8 @@ void event_logv_(int severity, const char *errstr, const char *fmt, va_list ap) #undef EV_CHECK_FMT +#ifdef __cplusplus +} #endif + +#endif /* LOG_INTERNAL_H_INCLUDED_ */ -- 2.40.0