gettext: Use gnulib's gettext.h for compatibility

Fixes issues with gettext on Solaris
Reported-by: Kiyoshi KANAZAWA <yoi_no_myoujou@yahoo.co.jp>
This commit is contained in:
Tim Rühsen 2015-02-09 10:08:19 +01:00
parent c83f344564
commit 3d8e765c1d
2 changed files with 3 additions and 7 deletions

View File

@ -47,6 +47,7 @@ getopt-gnu
getpass-gnu
getpeername
getsockname
gettext
gitlog-to-changelog
git-version-gen
gnupload

View File

@ -58,13 +58,8 @@ as that of the covered work. */
/* `gettext (FOO)' is long to write, so we use `_(FOO)'. If NLS is
unavailable, _(STRING) simply returns STRING. */
#if ENABLE_NLS
# include <libintl.h>
# define _(STRING) gettext(STRING)
#else
# define _(STRING) STRING
# define ngettext(STRING1,STRING2,N) STRING2
#endif
#include "gettext.h"
#define _(STRING) gettext(STRING)
/* A pseudo function call that serves as a marker for the automated
extraction of messages, but does not call gettext(). The run-time