summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2008-09-10 11:38:23 +0200
committerLudovic Courtès <ludo@gnu.org>2008-09-10 11:38:23 +0200
commitc5cd474d8c37bf32d7236e63d754a0eee9eb9071 (patch)
treebc7c7a43751726fdea852221b84ce28ce52e2b18
parent7ddb9baf80744f0ea4810c35b465d96f48338750 (diff)
downloadguile-c5cd474d8c37bf32d7236e63d754a0eee9eb9071.tar.gz
Fix compilation of `libguile-i18n' on MinGW.
* libguile/locale-categories.h (MESSAGES): Enclose in `#ifdef LC_MESSAGES' as it's not available on MinGW. Reported by Han-Wen.
-rw-r--r--libguile/locale-categories.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/libguile/locale-categories.h b/libguile/locale-categories.h
index cec91fb91..cbe9684a3 100644
--- a/libguile/locale-categories.h
+++ b/libguile/locale-categories.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 2006 Free Software Foundation, Inc.
+/* Copyright (C) 2006, 2008 Free Software Foundation, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -21,7 +21,12 @@
/* The six standard categories, as defined in IEEE Std 1003.1-2001. */
SCM_DEFINE_LOCALE_CATEGORY (COLLATE)
SCM_DEFINE_LOCALE_CATEGORY (CTYPE)
+
+#ifdef LC_MESSAGES
+/* MinGW doesn't have `LC_MESSAGES'. */
SCM_DEFINE_LOCALE_CATEGORY (MESSAGES)
+#endif
+
SCM_DEFINE_LOCALE_CATEGORY (MONETARY)
SCM_DEFINE_LOCALE_CATEGORY (NUMERIC)
SCM_DEFINE_LOCALE_CATEGORY (TIME)