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:
parent
c6bfa7e940
commit
34b00a7b79
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue