From e2515f6e1a7b17addda4c558a0a6ca05b4ec6e55 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Mon, 22 Jun 2015 18:32:27 +0200 Subject: Keep C++ compilers happy --- pcilib/error.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'pcilib/error.h') diff --git a/pcilib/error.h b/pcilib/error.h index e68d102..9b5492b 100644 --- a/pcilib/error.h +++ b/pcilib/error.h @@ -31,9 +31,18 @@ enum { PCILIB_ERROR_BUSY = EBUSY } pcilib_errot_t; +#ifdef __cplusplus +extern "C" { +#endif + void pcilib_log_message(const char *file, int line, pcilib_log_flags_t flags, pcilib_log_priority_t prio, const char *msg, ...); void pcilib_log_vmessage(const char *file, int line, pcilib_log_flags_t flags, pcilib_log_priority_t prio, const char *msg, va_list va); + +#ifdef __cplusplus +} +#endif + #define pcilib_log(prio, ...) \ pcilib_log_message(__FILE__, __LINE__, PCILIB_LOG_DEFAULT, prio, __VA_ARGS__) -- cgit v1.2.3