LogInit: disable SetLogCharset() without GLib
This commit is contained in:
		| @@ -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) | |||||||
| 	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) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Max Kellermann
					Max Kellermann