Guard gettext and friends with HAVE_LIBINTL_H. Fixes #549907.
This commit is contained in:
parent
4b270518b7
commit
c6a7d7ef49
|
@ -639,7 +639,7 @@ static struct PyMethodDef PyLocale_Methods[] = {
|
|||
{"nl_langinfo", (PyCFunction) PyLocale_nl_langinfo,
|
||||
METH_VARARGS, nl_langinfo__doc__},
|
||||
#endif
|
||||
#ifdef HAVE_LANGINFO_H
|
||||
#ifdef HAVE_LIBINTL_H
|
||||
{"gettext",(PyCFunction)PyIntl_gettext,METH_VARARGS,
|
||||
gettext__doc__},
|
||||
{"dgettext",(PyCFunction)PyIntl_dgettext,METH_VARARGS,
|
||||
|
|
Loading…
Reference in New Issue