Skip to content

Commit

Permalink
log-internal: missing extern "C"
Browse files Browse the repository at this point in the history
  • Loading branch information
azat committed Mar 14, 2017
1 parent 49dcf4d commit a9c2116
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions log-internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down Expand Up @@ -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_ */

0 comments on commit a9c2116

Please sign in to comment.