]> sjero.net Git - wget/commitdiff
[svn] Declare gettext when libintl.h is unavailable.
authorhniksic <devnull@localhost>
Wed, 4 May 2005 19:11:14 +0000 (12:11 -0700)
committerhniksic <devnull@localhost>
Wed, 4 May 2005 19:11:14 +0000 (12:11 -0700)
src/ChangeLog
src/wget.h

index bcd37978c048ea294aa7fcd5b29db87349b64ce6..83ac595b8e4764892f5575613dec049066d21d7a 100644 (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
index f7467bb7cd9e96cbbdf1888d2b93bd77996772da..ec8e0534b76b3957a8922e7f58870f31af726559 100644 (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 */