diff options
author | Azat Khuzhin <a3at.mail@gmail.com> | 2017-03-14 01:06:10 +0300 |
---|---|---|
committer | Azat Khuzhin <a3at.mail@gmail.com> | 2017-03-14 08:47:18 +0300 |
commit | a9c2116facb523d318bd029358ca9090e77cfe23 (patch) | |
tree | 028350d835918105a32f00e41f5fade923a4f1ce | |
parent | 49dcf4d554bcec89814a26d620c0f37603dc35cd (diff) | |
download | libevent-a9c2116facb523d318bd029358ca9090e77cfe23.tar.gz |
log-internal: missing extern "C"
-rw-r--r-- | log-internal.h | 8 |
1 files changed, 8 insertions, 0 deletions
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_ */ |