diff options
author | Max Kellermann <max@duempel.org> | 2008-12-25 04:15:44 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-12-25 04:15:44 +0100 |
commit | c39eb2cdf399c740c24884997364cf84c64fd46b (patch) | |
tree | cb27e0df8199ce28960cd316347783d519dab357 /src/main.c | |
parent | 634bed2e83799f604a60bfef62d5e240ea02511c (diff) | |
download | mpd-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/main.c')
-rw-r--r-- | src/main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main.c b/src/main.c index 53ea8c592..a0f7c0c99 100644 --- a/src/main.c +++ b/src/main.c @@ -45,7 +45,7 @@ #include <signal.h> #include <string.h> -#ifdef HAVE_LOCALE_H +#ifdef ENABLE_LOCALE #include <locale.h> #endif @@ -363,7 +363,7 @@ int main(int argc, const char *argv[]) { struct sigaction act; -#if defined(HAVE_LOCALE_H) && !defined(NCMPC_MINI) +#ifdef ENABLE_LOCALE const char *charset = NULL; #endif GIOChannel *keyboard_channel; @@ -372,7 +372,7 @@ main(int argc, const char *argv[]) GIOChannel *lirc_channel = NULL; #endif -#if defined(HAVE_LOCALE_H) && !defined(NCMPC_MINI) +#ifdef ENABLE_LOCALE /* time and date formatting */ setlocale(LC_TIME,""); /* care about sorting order etc */ |