LC_MESSAGES is not defined on all systems; use #ifdef LC_MESSAGES.

This commit is contained in:
Guido van Rossum 1997-12-09 19:35:11 +00:00
parent b978d18fec
commit 8d9c2e33e1
1 changed files with 2 additions and 0 deletions

View File

@ -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);