LogInit: disable SetLogCharset() without GLib

This commit is contained in:
Max Kellermann 2014-02-17 23:31:15 +01:00
parent 2b21312b36
commit 97f2be348c
2 changed files with 7 additions and 0 deletions

View File

@ -20,14 +20,19 @@
#ifndef MPD_LOG_BACKEND_HXX
#define MPD_LOG_BACKEND_HXX
#include "check.h"
#include "LogLevel.hxx"
void
SetLogThreshold(LogLevel _threshold);
#ifdef HAVE_GLIB
void
SetLogCharset(const char *_charset);
#endif
void
EnableLogTimestamp();

View File

@ -190,7 +190,9 @@ void setup_log_output(bool use_stdout)
close(out_fd);
out_fd = -1;
#ifdef HAVE_GLIB
SetLogCharset(nullptr);
#endif
}
int cycle_log_files(void)