Commit c6a7d7ef authored by Martin v. Löwis's avatar Martin v. Löwis

Guard gettext and friends with HAVE_LIBINTL_H. Fixes #549907.

parent 4b270518
...@@ -639,7 +639,7 @@ static struct PyMethodDef PyLocale_Methods[] = { ...@@ -639,7 +639,7 @@ static struct PyMethodDef PyLocale_Methods[] = {
{"nl_langinfo", (PyCFunction) PyLocale_nl_langinfo, {"nl_langinfo", (PyCFunction) PyLocale_nl_langinfo,
METH_VARARGS, nl_langinfo__doc__}, METH_VARARGS, nl_langinfo__doc__},
#endif #endif
#ifdef HAVE_LANGINFO_H #ifdef HAVE_LIBINTL_H
{"gettext",(PyCFunction)PyIntl_gettext,METH_VARARGS, {"gettext",(PyCFunction)PyIntl_gettext,METH_VARARGS,
gettext__doc__}, gettext__doc__},
{"dgettext",(PyCFunction)PyIntl_dgettext,METH_VARARGS, {"dgettext",(PyCFunction)PyIntl_dgettext,METH_VARARGS,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment