From c035e39b7d16c1cc121e3967d73e93437941ad54 Mon Sep 17 00:00:00 2001 From: hniksic Date: Wed, 4 May 2005 12:11:14 -0700 Subject: [PATCH] [svn] Declare gettext when libintl.h is unavailable. --- src/ChangeLog | 5 +++++ src/wget.h | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index bcd37978..83ac595b 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2005-05-04 Hrvoje Niksic + + * 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 * url.c (url_parse): Rename label `error' to avoid conflict with diff --git a/src/wget.h b/src/wget.h index f7467bb7..ec8e0534 100644 --- a/src/wget.h +++ b/src/wget.h @@ -54,7 +54,9 @@ so, delete this exception statement from your version. */ # define _(string) gettext (string) # ifdef HAVE_LIBINTL_H # include -# 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 */ -- 2.39.2