summaryrefslogtreecommitdiff
path: root/gcc/intl/dcgettext.c
diff options
context:
space:
mode:
authorpthomas <pthomas@138bc75d-0d04-0410-961f-82ee72b054a4>2000-09-18 22:05:52 +0000
committerpthomas <pthomas@138bc75d-0d04-0410-961f-82ee72b054a4>2000-09-18 22:05:52 +0000
commit67c50934dba8a669a00a3798900f150a84cbe27e (patch)
tree529472188fb11244ff641d3cfe5da53a7d7cdae7 /gcc/intl/dcgettext.c
parentcbc0ce7d635a8cd53666a9e0e163594b230edce8 (diff)
downloadgcc-67c50934dba8a669a00a3798900f150a84cbe27e.tar.gz
2000-09-18 Bruno Haible <haible@clisp.cons.org>
* intl/dcgettext.c: Outside libc, use local variable names that don't clash with those in libc. * intl/bindtextdom.c: Likewise. * intl/textdomain.c: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@36516 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/intl/dcgettext.c')
-rw-r--r--gcc/intl/dcgettext.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/intl/dcgettext.c b/gcc/intl/dcgettext.c
index a830f1de124..65de78b9cfb 100644
--- a/gcc/intl/dcgettext.c
+++ b/gcc/intl/dcgettext.c
@@ -85,6 +85,16 @@ void free ();
#endif
#include "hash-string.h"
+/* The internal variables in the standalone libintl.a must have different
+ names than the internal variables in GNU libc, otherwise programs
+ using libintl.a cannot be linked statically. */
+#if !defined _LIBC
+# define _nl_default_default_domain _nl_default_default_domain__
+# define _nl_current_default_domain _nl_current_default_domain__
+# define _nl_default_dirname _nl_default_dirname__
+# define _nl_domain_bindings _nl_domain_bindings__
+#endif
+
/* @@ end of prolog @@ */
#ifdef _LIBC