]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
intl: Use the lookup optimization also on platforms without per-thread locales.
authorBruno Haible <bruno@clisp.org>
Sat, 27 Apr 2019 09:43:45 +0000 (11:43 +0200)
committerBruno Haible <bruno@clisp.org>
Sat, 27 Apr 2019 10:07:09 +0000 (12:07 +0200)
This bug was introduced on 2007-01-27.

* gettext-runtime/intl/dcigettext.c (DCIGETTEXT): Fix #ifdef/#endif chain.

gettext-runtime/intl/dcigettext.c

index eabf9ee537185aa1fa56f2680e53185855bbde42..ba333303f194797cc900d7da7de3b97136a415ff 100644 (file)
@@ -1,5 +1,5 @@
 /* Implementation of the internal dcigettext function.
-   Copyright (C) 1995-2018 Free Software Foundation, Inc.
+   Copyright (C) 1995-2019 Free Software Foundation, Inc.
 
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU Lesser General Public License as published by
@@ -560,9 +560,10 @@ DCIGETTEXT (const char *domainname, const char *msgid1, const char *msgid2,
 #  endif
 # endif
   search.localename = localename;
-# ifdef IN_LIBGLOCALE
+#endif
+#ifdef IN_LIBGLOCALE
   search.encoding = encoding;
-# endif
+#endif
 
   /* Since tfind/tsearch manage a balanced tree, concurrent tfind and
      tsearch calls can be fatal.  */
@@ -588,7 +589,6 @@ DCIGETTEXT (const char *domainname, const char *msgid1, const char *msgid2,
       __set_errno (saved_errno);
       return retval;
     }
-#endif
 
   /* See whether this is a SUID binary or not.  */
   DETERMINE_SECURE;