From: Guido van Rossum Date: Tue, 9 Dec 1997 19:35:11 +0000 (+0000) Subject: LC_MESSAGES is not defined on all systems; use #ifdef LC_MESSAGES. X-Git-Tag: v1.5b2~47 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8d9c2e33e142a8b776570db7321c591c81870068;p=thirdparty%2FPython%2Fcpython.git LC_MESSAGES is not defined on all systems; use #ifdef LC_MESSAGES. --- diff --git a/Modules/_localemodule.c b/Modules/_localemodule.c index 14a22f32dff2..11b776039b3b 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);