1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

log: use C linking for legacy log functions

This commit is contained in:
Steffen Vogel 2019-01-22 16:01:56 +01:00
parent c6bfa7e940
commit 34b00a7b79

View file

@ -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