From b4afe74da73fc56759921d552a4ed0c333017cf1 Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Tue, 22 Jan 2019 16:01:56 +0100 Subject: [PATCH] log: use C linking for legacy log functions --- common/lib/log_legacy.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/common/lib/log_legacy.cpp b/common/lib/log_legacy.cpp index cb674c288..9e0f42ed7 100644 --- a/common/lib/log_legacy.cpp +++ b/common/lib/log_legacy.cpp @@ -28,10 +28,12 @@ #include #pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wunused-result" +#pragma GCC diagnostic ignored "-Wunused-result" using namespace villas; +extern "C" { + int log_get_width() { return logging.getWidth(); @@ -149,4 +151,6 @@ void jerror(json_error_t *err, const char *fmt, ...) pause(); } +} + #pragma GCC diagnostic pop