[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug-gettext] [PATCH 4/8] gettext-runtime: Fix name resolution failures
From: |
KO Myung-Hun |
Subject: |
[bug-gettext] [PATCH 4/8] gettext-runtime: Fix name resolution failures on kLIBC |
Date: |
Sun, 8 Nov 2015 14:58:00 +0900 |
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.
---
gettext-runtime/intl/dcigettext.c | 2 +-
gettext-runtime/intl/gettextP.h | 3 +++
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/gettext-runtime/intl/dcigettext.c
b/gettext-runtime/intl/dcigettext.c
index 8a3f091..c0faf18 100644
--- a/gettext-runtime/intl/dcigettext.c
+++ b/gettext-runtime/intl/dcigettext.c
@@ -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
diff --git a/gettext-runtime/intl/gettextP.h b/gettext-runtime/intl/gettextP.h
index bbd2139..f3a9ded 100644
--- a/gettext-runtime/intl/gettextP.h
+++ b/gettext-runtime/intl/gettextP.h
@@ -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;
--
2.6.0
- [bug-gettext] [PATCH] OS/2 patches, KO Myung-Hun, 2015/11/08
- [bug-gettext] [PATCH 1/8] moop: Replace CR as well as NL with a space, KO Myung-Hun, 2015/11/08
- [bug-gettext] [PATCH 2/8] test-lock: Do not include sched.h on kLIBC, KO Myung-Hun, 2015/11/08
- [bug-gettext] [PATCH 4/8] gettext-runtime: Fix name resolution failures on kLIBC,
KO Myung-Hun <=
- [bug-gettext] [PATCH 3/8] build: Do not include os2compat.[ch], KO Myung-Hun, 2015/11/08
- [bug-gettext] [PATCH 6/8] libasprintf: Build a shared library on OS/2, KO Myung-Hun, 2015/11/08
- [bug-gettext] [PATCH 7/8] gettext-tools: Use a short name for DLLs on OS/2, KO Myung-Hun, 2015/11/08
- [bug-gettext] [PATCH 8/8] xgettext, cldr-plurals: Fix linkage on OS/2, KO Myung-Hun, 2015/11/08
- [bug-gettext] [PATCH 5/8] intl: Support UNIXROOT in BINDTEXTDOMAIN () on EMX, KO Myung-Hun, 2015/11/08
- Re: [bug-gettext] [PATCH] OS/2 patches, Daiki Ueno, 2015/11/17