From 8d9c2e33e142a8b776570db7321c591c81870068 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Tue, 9 Dec 1997 19:35:11 +0000 Subject: [PATCH] LC_MESSAGES is not defined on all systems; use #ifdef LC_MESSAGES. --- Modules/_localemodule.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Modules/_localemodule.c b/Modules/_localemodule.c index 14a22f32df..11b776039b 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); -- 2.50.1