summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Modules/_localemodule.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/_localemodule.c b/Modules/_localemodule.c
index 14a22f3..11b7760 100644
--- a/Modules/_localemodule.c
+++ b/Modules/_localemodule.c
@@ -327,9 +327,11 @@ init_locale()
PyDict_SetItemString(d,"LC_MONETARY",x);
Py_XDECREF(x);
+#ifdef LC_MESSAGES
x=PyInt_FromLong(LC_MESSAGES);
PyDict_SetItemString(d,"LC_MESSAGES",x);
Py_XDECREF(x);
+#endif /* LC_MESSAGES */
x=PyInt_FromLong(LC_NUMERIC);
PyDict_SetItemString(d,"LC_NUMERIC",x);