aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichał Łyszczek <michal.lyszczek@bofc.pl>2018-04-05 16:33:18 +0200
committerMichał Łyszczek <michal.lyszczek@bofc.pl>2018-04-05 16:33:18 +0200
commit8048fde05ec8122e7d2579705b356cb75f2e80cc (patch)
treef27bc7a40afaa95f38b4cc140b3609f72f8aae6a
parent72b4721960381f69bffda30608b015054e44c2e0 (diff)
downloadembedlog-8048fde05ec8122e7d2579705b356cb75f2e80cc.tar.gz
embedlog-8048fde05ec8122e7d2579705b356cb75f2e80cc.tar.bz2
embedlog-8048fde05ec8122e7d2579705b356cb75f2e80cc.zip
add: support for c++ folks (why would they use it anyway?)
-rw-r--r--include/embedlog.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/embedlog.h b/include/embedlog.h
index 934d54a..fe3e1bd 100644
--- a/include/embedlog.h
+++ b/include/embedlog.h
@@ -11,6 +11,10 @@
#include <stdarg.h>
#include <stdio.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#ifdef NOFINFO
# define ELF NULL, 0, EL_FATAL
# define ELA NULL, 0, EL_ALERT
@@ -155,5 +159,8 @@ int el_opmemory(const char *file, size_t line, enum el_level level,
int el_operror(const char *file, size_t line, enum el_level level,
struct el_options *options, const char *fmt, ...);
+#ifdef __cplusplus
+}
+#endif
#endif