aboutsummaryrefslogtreecommitdiffstats
path: root/src/charset.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-12-25 04:15:44 +0100
committerMax Kellermann <max@duempel.org>2008-12-25 04:15:44 +0100
commitc39eb2cdf399c740c24884997364cf84c64fd46b (patch)
treecb27e0df8199ce28960cd316347783d519dab357 /src/charset.c
parent634bed2e83799f604a60bfef62d5e240ea02511c (diff)
downloadmpd-c39eb2cdf399c740c24884997364cf84c64fd46b.tar.gz
mpd-c39eb2cdf399c740c24884997364cf84c64fd46b.tar.xz
mpd-c39eb2cdf399c740c24884997364cf84c64fd46b.zip
configure.ac: added --disable-locale option
Make locale.h mandatory. --disable-locale disables the locale.h check.
Diffstat (limited to 'src/charset.c')
-rw-r--r--src/charset.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/charset.c b/src/charset.c
index 69e15eb6e..b948636f0 100644
--- a/src/charset.c
+++ b/src/charset.c
@@ -23,7 +23,7 @@
#include <string.h>
#include <glib.h>
-#if defined(HAVE_LOCALE_H) && !defined(NCMPC_MINI)
+#ifdef ENABLE_LOCALE
static bool noconvert = true;
static const char *charset;
@@ -62,7 +62,7 @@ utf8_width(const char *str)
char *
utf8_to_locale(const char *utf8str)
{
-#if defined(HAVE_LOCALE_H) && !defined(NCMPC_MINI)
+#ifdef ENABLE_LOCALE
gchar *str;
assert(utf8str != NULL);
@@ -85,7 +85,7 @@ utf8_to_locale(const char *utf8str)
char *
locale_to_utf8(const char *localestr)
{
-#if defined(HAVE_LOCALE_H) && !defined(NCMPC_MINI)
+#ifdef ENABLE_LOCALE
gchar *str;
assert(localestr != NULL);