Commit 97f2be34 authored by Max Kellermann's avatar Max Kellermann

LogInit: disable SetLogCharset() without GLib

parent 2b21312b
...@@ -20,14 +20,19 @@ ...@@ -20,14 +20,19 @@
#ifndef MPD_LOG_BACKEND_HXX #ifndef MPD_LOG_BACKEND_HXX
#define MPD_LOG_BACKEND_HXX #define MPD_LOG_BACKEND_HXX
#include "check.h"
#include "LogLevel.hxx" #include "LogLevel.hxx"
void void
SetLogThreshold(LogLevel _threshold); SetLogThreshold(LogLevel _threshold);
#ifdef HAVE_GLIB
void void
SetLogCharset(const char *_charset); SetLogCharset(const char *_charset);
#endif
void void
EnableLogTimestamp(); EnableLogTimestamp();
......
...@@ -190,7 +190,9 @@ void setup_log_output(bool use_stdout) ...@@ -190,7 +190,9 @@ void setup_log_output(bool use_stdout)
close(out_fd); close(out_fd);
out_fd = -1; out_fd = -1;
#ifdef HAVE_GLIB
SetLogCharset(nullptr); SetLogCharset(nullptr);
#endif
} }
int cycle_log_files(void) int cycle_log_files(void)
......
Markdown is supported
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