Commit 8c4ad25b authored by Steffen Vogel's avatar Steffen Vogel 🎅🏼
Browse files

log: use C linking for legacy log functions

parent 27e8440c
......@@ -28,10 +28,12 @@
#include <villas/log.hpp>
#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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment