]> granicus.if.org Git - libevent/commitdiff
log-internal: missing extern "C"
authorAzat Khuzhin <a3at.mail@gmail.com>
Mon, 13 Mar 2017 22:06:10 +0000 (01:06 +0300)
committerAzat Khuzhin <a3at.mail@gmail.com>
Tue, 14 Mar 2017 05:47:18 +0000 (08:47 +0300)
log-internal.h

index 97d510fc758ed9e4e58d72ca2cc85587e5d3bc22..4c927afcb838ce0c1b2a97cb390aa25a8721ad83 100644 (file)
 
 #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_ */