Add autoconf test for presense of _nl_msg_cat_cntr

darcs-hash:20060121160234-ac50b-e41abc6688846ab207b9b6c3143cd694f8452154.gz
This commit is contained in:
axel
2006-01-22 02:02:34 +10:00
parent fea22833cd
commit 78296d4fac
2 changed files with 25 additions and 3 deletions

9
env.c
View File

@@ -282,12 +282,17 @@ static void handle_locale()
if( wcscmp( wsetlocale( LC_MESSAGES, (void *)0 ), old ) != 0 )
{
/* Make change known to gettext. */
/* Try to make change known to gettext. */
#ifdef HAVE__NL_MSG_CAT_CNTR
{
extern int _nl_msg_cat_cntr;
++_nl_msg_cat_cntr;
}
#elif HAVE_DCGETTEXT
dcgettext("fish","",LC_MESSAGES);
#endif
if( is_interactive )
{
complete_destroy();