Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ACS
Public
VILLASframework
VILLAScommon
Commits
7fcce77d
Commit
7fcce77d
authored
Jul 03, 2020
by
Steffen Vogel
🎅🏼
Browse files
log: add preproc #if/#else to handle ABI incompatabilities in spdlog
parent
9de23e97
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/log.cpp
View file @
7fcce77d
...
...
@@ -114,8 +114,11 @@ void Log::parse(json_t *cfg)
}
if
(
syslog
)
{
#if SPDLOG_VERSION >= 10400
auto
sink
=
std
::
make_shared
<
spdlog
::
sinks
::
syslog_sink_mt
>
(
"villas"
,
LOG_PID
,
LOG_DAEMON
,
true
);
#else
auto
sink
=
std
::
make_shared
<
spdlog
::
sinks
::
syslog_sink_mt
>
(
"villas"
,
LOG_PID
,
LOG_DAEMON
);
#endif
sinks
->
add_sink
(
sink
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment