summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-12-09 19:35:11 (GMT)
committerGuido van Rossum <guido@python.org>1997-12-09 19:35:11 (GMT)
commit8d9c2e33e142a8b776570db7321c591c81870068 (patch)
tree2fdb2a48327d3ac2b498b515c490784910a51f8a /Modules
parentb978d18fec0b583be415e20464e63f40bdc895da (diff)
downloadcpython-8d9c2e33e142a8b776570db7321c591c81870068.zip
cpython-8d9c2e33e142a8b776570db7321c591c81870068.tar.gz
cpython-8d9c2e33e142a8b776570db7321c591c81870068.tar.bz2
LC_MESSAGES is not defined on all systems; use #ifdef LC_MESSAGES.
Diffstat (limited to 'Modules')
-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);