fs/Charset: add macro HAVE_FS_CHARSET

This commit is contained in:
Max Kellermann
2014-11-29 23:35:49 +01:00
parent fd2c6b8a4b
commit 125daea16a
4 changed files with 7 additions and 3 deletions

View File

@@ -91,7 +91,7 @@ SetFSCharset(const char *charset, Error &error)
const char *
GetFSCharset()
{
#ifdef HAVE_GLIB
#ifdef HAVE_FS_CHARSET
return fs_charset.empty() ? "UTF-8" : fs_charset.c_str();
#else
return "UTF-8";