aboutsummaryrefslogtreecommitdiffstats
path: root/src/fs/Config.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-02-17 22:48:26 +0100
committerMax Kellermann <max@duempel.org>2014-02-17 22:48:26 +0100
commitce925ba56fdcdf6168db7597185f6c34643a7501 (patch)
tree158c3583c8ba7b11d244eb5287a528499c95f135 /src/fs/Config.cxx
parent4ad14f6a2c58854c3a00fb44bf5fa5340fe6a5c9 (diff)
downloadmpd-ce925ba56fdcdf6168db7597185f6c34643a7501.tar.gz
mpd-ce925ba56fdcdf6168db7597185f6c34643a7501.tar.xz
mpd-ce925ba56fdcdf6168db7597185f6c34643a7501.zip
fs/Charset: disable if GLib is disabled
Diffstat (limited to '')
-rw-r--r--src/fs/Config.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/fs/Config.cxx b/src/fs/Config.cxx
index c9555bcc2..6aa23005c 100644
--- a/src/fs/Config.cxx
+++ b/src/fs/Config.cxx
@@ -22,16 +22,17 @@
#include "Charset.hxx"
#include "config/ConfigGlobal.hxx"
-#include <glib.h>
-
#ifdef WIN32
#include <windows.h> // for GetACP()
#include <stdio.h> // for sprintf()
+#elif defined(HAVE_GLIB)
+#include <glib.h>
#endif
void
ConfigureFS()
{
+#if defined(HAVE_GLIB) || defined(WIN32)
const char *charset = nullptr;
charset = config_get_string(CONF_FS_CHARSET, nullptr);
@@ -56,4 +57,5 @@ ConfigureFS()
if (charset != nullptr)
SetFSCharset(charset);
+#endif
}