aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-03-19 15:56:31 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-03-19 15:56:31 +0000
commit278985b2fdff985ca9ba88444bc4a91ae92fe9d0 (patch)
tree41262357d23d7fd16518a497538d77a8c6613213 /src
parente40c676dba90b097596f1fb845eff432e59594ca (diff)
downloadmpd-278985b2fdff985ca9ba88444bc4a91ae92fe9d0.tar.gz
mpd-278985b2fdff985ca9ba88444bc4a91ae92fe9d0.tar.xz
mpd-278985b2fdff985ca9ba88444bc4a91ae92fe9d0.zip
more fun with LOCALE and LANGINFO
git-svn-id: https://svn.musicpd.org/mpd/trunk@299 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--src/path.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/path.c b/src/path.c
index d475d356b..a7f143dc7 100644
--- a/src/path.c
+++ b/src/path.c
@@ -24,8 +24,8 @@
#include <stdlib.h>
#include <string.h>
-#ifdef HAVE_LC_MESSAGES
-#ifdef HAVE_LANGINFO_CODESET
+#ifdef HAVE_LOCALE
+#ifdef HAVE_LANGINFO
#include <locale.h>
#include <langinfo.h>
#endif
@@ -87,8 +87,8 @@ char * getFsCharset() {
}
void initPaths() {
-#ifdef HAVE_LC_MESSAGES
-#ifdef HAVE_LANGINFO_CODESET
+#ifdef HAVE_LOCALE
+#ifdef HAVE_LANGINFO
char * originalLocale;
#endif
#endif
@@ -97,8 +97,8 @@ void initPaths() {
if(getConf()[CONF_FS_CHARSET]) {
charset = strdup(getConf()[CONF_FS_CHARSET]);
}
-#ifdef HAVE_LC_MESSAGES
-#ifdef HAVE_LANGINFO_CODESET
+#ifdef HAVE_LOCALE
+#ifdef HAVE_LANGINFO
else if((originalLocale = setlocale(LC_ALL,""))) {
char * temp;