diff options
author | David Shaw <[email protected]> | 2003-03-23 20:47:27 +0000 |
---|---|---|
committer | David Shaw <[email protected]> | 2003-03-23 20:47:27 +0000 |
commit | 2c6d545517feb605bda45abbd38b7da168c905fa (patch) | |
tree | b4443c96268b64575f62601f424c9db46211b587 | |
parent | * Makefile.am: gpgkeys_hkp needs @INTLLIBS@ on some platforms. (diff) | |
download | gnupg-2c6d545517feb605bda45abbd38b7da168c905fa.tar.gz gnupg-2c6d545517feb605bda45abbd38b7da168c905fa.zip |
* dcigettext.c (plural_lookup): Name conflict on some platforms with
"index". Local fix for GnuPG.
-rw-r--r-- | intl/ChangeLog | 5 | ||||
-rw-r--r-- | intl/dcigettext.c | 10 |
2 files changed, 10 insertions, 5 deletions
diff --git a/intl/ChangeLog b/intl/ChangeLog index 84e2b37ec..e5bb6096d 100644 --- a/intl/ChangeLog +++ b/intl/ChangeLog @@ -1,3 +1,8 @@ +2003-03-23 David Shaw <[email protected]> + + * dcigettext.c (plural_lookup): Name conflict on some platforms + with "index". Local fix for GnuPG. + 2001-09-13 GNU <[email protected]> * Version 0.10.40 released. diff --git a/intl/dcigettext.c b/intl/dcigettext.c index 6acde195f..03a8830f9 100644 --- a/intl/dcigettext.c +++ b/intl/dcigettext.c @@ -974,18 +974,18 @@ plural_lookup (domain, n, translation, translation_len) size_t translation_len; { struct loaded_domain *domaindata = (struct loaded_domain *) domain->data; - unsigned long int index; + unsigned long int ind; /* gnupg */ const char *p; - index = plural_eval (domaindata->plural, n); - if (index >= domaindata->nplurals) + ind = plural_eval (domaindata->plural, n); /* gnupg */ + if (ind >= domaindata->nplurals) /* gnupg */ /* This should never happen. It means the plural expression and the given maximum value do not match. */ - index = 0; + ind = 0; /* gnupg */ /* Skip INDEX strings at TRANSLATION. */ p = translation; - while (index-- > 0) + while (ind-- > 0) /* gnupg */ { #ifdef _LIBC p = __rawmemchr (p, '\0'); |