1
0
mirror of https://github.com/moparisthebest/wget synced 2024-07-03 16:38:41 -04:00

[svn] Declare gettext when libintl.h is unavailable.

This commit is contained in:
hniksic 2005-05-04 12:11:14 -07:00
parent c7ce6fee5c
commit c035e39b7d
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2005-05-04 Hrvoje Niksic <hniksic@xemacs.org>
* wget.h: If gettext was found but libtintl.h wasn't, declare
gettext's return type to avoid type mismatches.
2005-05-03 Hrvoje Niksic <hniksic@xemacs.org>
* url.c (url_parse): Rename label `error' to avoid conflict with

View File

@ -54,7 +54,9 @@ so, delete this exception statement from your version. */
# define _(string) gettext (string)
# ifdef HAVE_LIBINTL_H
# include <libintl.h>
# endif /* HAVE_LIBINTL_H */
# else /* not HAVE_LIBINTL_H */
const char *gettext ();
# endif /* not HAVE_LIBINTL_H */
#else /* not HAVE_NLS */
# define _(string) (string)
#endif /* not HAVE_NLS */