From c39eb2cdf399c740c24884997364cf84c64fd46b Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 25 Dec 2008 04:15:44 +0100 Subject: configure.ac: added --disable-locale option Make locale.h mandatory. --disable-locale disables the locale.h check. --- src/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/main.c') 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 #include -#ifdef HAVE_LOCALE_H +#ifdef ENABLE_LOCALE #include #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 */ -- cgit v1.2.3