diff --git a/Modules/_localemodule.c b/Modules/_localemodule.c index 14a22f32dff..11b776039b3 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);