Guard gettext and friends with HAVE_LIBINTL_H. Fixes #549907.

This commit is contained in:
Martin v. Löwis 2002-05-02 12:16:29 +00:00
parent 4b270518b7
commit c6a7d7ef49
1 changed files with 1 additions and 1 deletions

View File

@ -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,