summaryrefslogtreecommitdiffstats
path: root/gettext-runtime/intl/loadmsgcat.c
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2005-08-10 10:57:11 +0000
committerBruno Haible <bruno@clisp.org>2009-06-23 12:12:46 +0200
commita877c99069f5a70a9ab76bf9e2ae467be9b81643 (patch)
treee1546ea729098d0780ab6b57d7e7bb3a62447000 /gettext-runtime/intl/loadmsgcat.c
parent4d1b88bf357d9f1d1b8254372f0b29fcd3d99e25 (diff)
downloadexternal_gettext-a877c99069f5a70a9ab76bf9e2ae467be9b81643.zip
external_gettext-a877c99069f5a70a9ab76bf9e2ae467be9b81643.tar.gz
external_gettext-a877c99069f5a70a9ab76bf9e2ae467be9b81643.tar.bz2
Add conditional code for using libintl in libglocale.
Diffstat (limited to 'gettext-runtime/intl/loadmsgcat.c')
-rw-r--r--gettext-runtime/intl/loadmsgcat.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gettext-runtime/intl/loadmsgcat.c b/gettext-runtime/intl/loadmsgcat.c
index 9f540e7..2520c8c 100644
--- a/gettext-runtime/intl/loadmsgcat.c
+++ b/gettext-runtime/intl/loadmsgcat.c
@@ -1276,7 +1276,12 @@ _nl_load_domain (struct loaded_l10nfile *domain_file,
domain->nconversions = 0;
/* Get the header entry and look for a plural specification. */
+#ifdef IN_LIBGLOCALE
+ nullentry =
+ _nl_find_msg (domain_file, domainbinding, NULL, "", &nullentrylen);
+#else
nullentry = _nl_find_msg (domain_file, domainbinding, "", 0, &nullentrylen);
+#endif
EXTRACT_PLURAL_EXPRESSION (nullentry, &domain->plural, &domain->nplurals);
out: