mirror of https://github.com/python/cpython
LC_MESSAGES is not defined on all systems; use #ifdef LC_MESSAGES.
This commit is contained in:
parent
b978d18fec
commit
8d9c2e33e1
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue