mirror of
https://https.git.savannah.gnu.org/git/gettext.git
synced 2026-01-26 15:39:11 +00:00
intl: Fix name resolution failures on kLIBC
kLIBC already has _nl_default_dirname and _nl_msg_cat_cntr in its own gettext implmenetation. * gettext-runtime/intl/dcigettext.c: Do not declare _nl_default_dirname on kLIBC. * gettext-runtime/intl/gettextP.h: Define _nl_msg_cat_cntr to libintl_nl_msg_cat_cntr on kLIBC. Copyright-paperwork-exempt: yes
This commit is contained in:
parent
6f2223058e
commit
660d9c6bc5
@ -323,7 +323,7 @@ const char *_nl_current_default_domain attribute_hidden
|
||||
#endif
|
||||
|
||||
/* Contains the default location of the message catalogs. */
|
||||
#if defined __EMX__
|
||||
#if defined __EMX__ && !defined __KLIBC__
|
||||
extern const char _nl_default_dirname[];
|
||||
#else
|
||||
# ifdef _LIBC
|
||||
|
||||
@ -219,6 +219,9 @@ struct binding
|
||||
/* A counter which is incremented each time some previous translations
|
||||
become invalid.
|
||||
This variable is part of the external ABI of the GNU libintl. */
|
||||
#if defined __KLIBC__ && !defined _LIBC
|
||||
# define _nl_msg_cat_cntr libintl_nl_msg_cat_cntr
|
||||
#endif
|
||||
#ifdef IN_LIBGLOCALE
|
||||
# include <glocale/config.h>
|
||||
extern LIBGLOCALE_DLL_EXPORTED int _nl_msg_cat_cntr;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user