From 8dc80e761193731c825a14867f8f190212775284 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nils=20O=2E=20Sel=C3=A5sdal?= Date: Tue, 6 Nov 2012 19:08:31 +0100 Subject: [PATCH] Make ucore_logging.h c++ safe --- src/ucore_logging.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/ucore_logging.h b/src/ucore_logging.h index f3c9cfe..e342a34 100644 --- a/src/ucore_logging.h +++ b/src/ucore_logging.h @@ -60,6 +60,10 @@ * */ +#ifdef __cplusplus +extern "C" { +#endif + /** The log levels defined by ucore logging*/ enum UC_LOG_LEVEL { UC_LL_NONE = 0, @@ -226,5 +230,10 @@ void uc_logf(int log_level, int module, const char *file, int line, const char * */ #define UC_LOGF(lvl, mod, fmt, ...) uc_logf(lvl, mod, __FILE__, __LINE__, fmt, ## __VA_ARGS__) + +#ifdef __cplusplus +} +#endif + #endif