]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Prefix all libintl specific functions with libintl_ instead of suffixing them
authorBruno Haible <bruno@clisp.org>
Mon, 29 Apr 2002 17:34:18 +0000 (17:34 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:07:54 +0000 (12:07 +0200)
with __. Use preprocessor-level redirection in libgnuintl.h.

19 files changed:
intl/ChangeLog
intl/bindtextdom.c
intl/dcgettext.c
intl/dcigettext.c
intl/dcngettext.c
intl/dgettext.c
intl/dngettext.c
intl/gettext.c
intl/gettextP.h
intl/intl-compat.c
intl/libgnuintl.h
intl/ngettext.c
intl/os2compat.c
intl/plural-exp.h
intl/textdomain.c
tests/ChangeLog
tests/plural-1-prg.c
tests/tstgettext.c
tests/tstngettext.c

index 0df7ed4b61de7914fa360cb1bf3a12349833a946..80cefa3b3404b7c61727fbba93f7d263fe914abc 100644 (file)
@@ -1,3 +1,21 @@
+2002-04-27  Bruno Haible  <bruno@clisp.org>
+
+       * libgnuintl.h: Redirect every function to the one prefixed with
+       "libintl_". Remove __OPTIMIZED variants.
+       * gettextP.h: Use prefix "libintl_" instead of suffix "__".
+       * dcigettext.c: Likewise.
+       * dcgettext.c: Likewise.
+       * dgettext.c: Likewise.
+       * gettext.c: Likewise.
+       * dcngettext.c: Likewise.
+       * dngettext.c: Likewise.
+       * ngettext.c: Likewise.
+       * textdomain.c: Likewise.
+       * bindtextdom.c: Likewise.
+       * plural-exp.h: Likewise.
+       * os2compat.c: Likewise.
+       * intl-compat.c: Likewise.
+
 2002-04-24  Bruno Haible  <bruno@clisp.org>
 
        * gettext-0.11.2 released.
index a3c233d7706b77190bbffd65f01524907bf07f94..d582ce11d51f4044f1d5198d998046f96a99b1ef 100644 (file)
@@ -45,8 +45,8 @@
    names than the internal variables in GNU libc, otherwise programs
    using libintl.a cannot be linked statically.  */
 #if !defined _LIBC
-# define _nl_default_dirname _nl_default_dirname__
-# define _nl_domain_bindings _nl_domain_bindings__
+# define _nl_default_dirname libintl_nl_default_dirname
+# define _nl_domain_bindings libintl_nl_domain_bindings
 #endif
 
 /* Some compilers, like SunOS4 cc, don't have offsetof in <stddef.h>.  */
@@ -77,8 +77,8 @@ __libc_rwlock_define (extern, _nl_state_lock attribute_hidden)
 #  define strdup(str) __strdup (str)
 # endif
 #else
-# define BINDTEXTDOMAIN bindtextdomain__
-# define BIND_TEXTDOMAIN_CODESET bind_textdomain_codeset__
+# define BINDTEXTDOMAIN libintl_bindtextdomain
+# define BIND_TEXTDOMAIN_CODESET libintl_bind_textdomain_codeset
 #endif
 
 /* Prototypes for local functions.  */
index 70ee3bafe5443f3ee343e2cae71fe4beb2910ed4..ca6a1c82d460cefeb1a8c4cc68ecb28b0af14531 100644 (file)
@@ -37,8 +37,8 @@
 # define DCGETTEXT __dcgettext
 # define DCIGETTEXT __dcigettext
 #else
-# define DCGETTEXT dcgettext__
-# define DCIGETTEXT dcigettext__
+# define DCGETTEXT libintl_dcgettext
+# define DCIGETTEXT libintl_dcigettext
 #endif
 
 /* Look up MSGID in the DOMAINNAME message catalog for the current CATEGORY
index afbb181f8676cd030ab9bc8f446c6dd0fb79301f..329dc0985a69e4e5c8fee8c0f7ca0372e820a1e0 100644 (file)
@@ -102,10 +102,10 @@ extern int errno;
    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__
+# define _nl_default_default_domain libintl_nl_default_default_domain
+# define _nl_current_default_domain libintl_nl_current_default_domain
+# define _nl_default_dirname libintl_nl_default_dirname
+# define _nl_domain_bindings libintl_nl_domain_bindings
 #endif
 
 /* Some compilers, like SunOS4 cc, don't have offsetof in <stddef.h>.  */
@@ -344,7 +344,7 @@ typedef unsigned char transmem_block_t;
 #ifdef _LIBC
 # define DCIGETTEXT __dcigettext
 #else
-# define DCIGETTEXT dcigettext__
+# define DCIGETTEXT libintl_dcigettext
 #endif
 
 /* Lock variable to protect the global data in the gettext implementation.  */
index d31ff9bfaec6aa524b7fbb297690a730d84ff553..17d9ce3e29abf757c8b175382d395b0247fad8c9 100644 (file)
@@ -37,8 +37,8 @@
 # define DCNGETTEXT __dcngettext
 # define DCIGETTEXT __dcigettext
 #else
-# define DCNGETTEXT dcngettext__
-# define DCIGETTEXT dcigettext__
+# define DCNGETTEXT libintl_dcngettext
+# define DCIGETTEXT libintl_dcigettext
 #endif
 
 /* Look up MSGID in the DOMAINNAME message catalog for the current CATEGORY
index 17b0442c662c003a8c036df8fafcb75b82ada2a5..cf5b4037f07c6f9346c0809c53e1cdfb2cfb1f21 100644 (file)
@@ -39,8 +39,8 @@
 # define DGETTEXT __dgettext
 # define DCGETTEXT INTUSE(__dcgettext)
 #else
-# define DGETTEXT dgettext__
-# define DCGETTEXT dcgettext__
+# define DGETTEXT libintl_dgettext
+# define DCGETTEXT libintl_dcgettext
 #endif
 
 /* Look up MSGID in the DOMAINNAME message catalog of the current
index 2b9ff886bdd2620392bf501d958873fdef8514c8..0afbd2e10402221c0c880f8978920952527388be 100644 (file)
@@ -39,8 +39,8 @@
 # define DNGETTEXT __dngettext
 # define DCNGETTEXT INTUSE(__dcngettext)
 #else
-# define DNGETTEXT dngettext__
-# define DCNGETTEXT dcngettext__
+# define DNGETTEXT libintl_dngettext
+# define DCNGETTEXT libintl_dcngettext
 #endif
 
 /* Look up MSGID in the DOMAINNAME message catalog of the current
index e52d8aef3ce8b460bfce2925b3f41c459611198c..43d689f55201f34c77b863c30f0717fe7fdc106b 100644 (file)
@@ -44,8 +44,8 @@
 # define GETTEXT __gettext
 # define DCGETTEXT INTUSE(__dcgettext)
 #else
-# define GETTEXT gettext__
-# define DCGETTEXT dcgettext__
+# define GETTEXT libintl_gettext
+# define DCGETTEXT libintl_dcgettext
 #endif
 
 /* Look up MSGID in the current default message catalog for the current
index 4e3a5b252ec7f81f0d16fa096f035548d6db0921..0fff5a9e9b2d608bc97098d666ed6cd56bf06fde 100644 (file)
@@ -176,28 +176,33 @@ extern char *__bindtextdomain PARAMS ((const char *__domainname,
 extern char *__bind_textdomain_codeset PARAMS ((const char *__domainname,
                                                const char *__codeset));
 #else
-extern char *gettext__ PARAMS ((const char *__msgid));
-extern char *dgettext__ PARAMS ((const char *__domainname,
-                                const char *__msgid));
-extern char *dcgettext__ PARAMS ((const char *__domainname,
-                                 const char *__msgid, int __category));
-extern char *ngettext__ PARAMS ((const char *__msgid1, const char *__msgid2,
-                                unsigned long int __n));
-extern char *dngettext__ PARAMS ((const char *__domainname,
-                                 const char *__msgid1, const char *__msgid2,
-                                 unsigned long int __n));
-extern char *dcngettext__ PARAMS ((const char *__domainname,
-                                  const char *__msgid1, const char *__msgid2,
-                                  unsigned long int __n, int __category));
-extern char *dcigettext__ PARAMS ((const char *__domainname,
-                                  const char *__msgid1, const char *__msgid2,
-                                  int __plural, unsigned long int __n,
-                                  int __category));
-extern char *textdomain__ PARAMS ((const char *__domainname));
-extern char *bindtextdomain__ PARAMS ((const char *__domainname,
-                                      const char *__dirname));
-extern char *bind_textdomain_codeset__ PARAMS ((const char *__domainname,
-                                               const char *__codeset));
+extern char *libintl_gettext PARAMS ((const char *__msgid));
+extern char *libintl_dgettext PARAMS ((const char *__domainname,
+                                      const char *__msgid));
+extern char *libintl_dcgettext PARAMS ((const char *__domainname,
+                                       const char *__msgid, int __category));
+extern char *libintl_ngettext PARAMS ((const char *__msgid1,
+                                      const char *__msgid2,
+                                      unsigned long int __n));
+extern char *libintl_dngettext PARAMS ((const char *__domainname,
+                                       const char *__msgid1,
+                                       const char *__msgid2,
+                                       unsigned long int __n));
+extern char *libintl_dcngettext PARAMS ((const char *__domainname,
+                                        const char *__msgid1,
+                                        const char *__msgid2,
+                                        unsigned long int __n,
+                                        int __category));
+extern char *libintl_dcigettext PARAMS ((const char *__domainname,
+                                        const char *__msgid1,
+                                        const char *__msgid2,
+                                        int __plural, unsigned long int __n,
+                                        int __category));
+extern char *libintl_textdomain PARAMS ((const char *__domainname));
+extern char *libintl_bindtextdomain PARAMS ((const char *__domainname,
+                                            const char *__dirname));
+extern char *libintl_bind_textdomain_codeset PARAMS ((const char *__domainname,
+                                                     const char *__codeset));
 #endif
 
 /* @@ begin of epilog @@ */
index 0a06ce947bd7234174883ac4d48ae13af0b2c412..5d0b71e37bc6bb57bac238c14988b66fdf40397f 100644 (file)
@@ -1,6 +1,6 @@
 /* intl-compat.c - Stub functions to call gettext functions from GNU gettext
    Library.
-   Copyright (C) 1995, 2000, 2001 Software Foundation, Inc.
+   Copyright (C) 1995, 2000-2002 Software Foundation, Inc.
 
    This program is free software; you can redistribute it and/or modify it
    under the terms of the GNU Library General Public License as published
 
 /* @@ end of prolog @@ */
 
-/* This file redirects the gettext functions (without prefix or suffix) to
-   those defined in the included GNU gettext library (with "__" suffix).
-   It is compiled into libintl when the included GNU gettext library is
-   configured --with-included-gettext.
-
-   This redirection works also in the case that the system C library or
-   the system libintl library contain gettext/textdomain/... functions.
-   If it didn't, we would need to add preprocessor level redirections to
-   libgnuintl.h of the following form:
-
-#    define gettext gettext__
-#    define dgettext dgettext__
-#    define dcgettext dcgettext__
-#    define ngettext ngettext__
-#    define dngettext dngettext__
-#    define dcngettext dcngettext__
-#    define textdomain textdomain__
-#    define bindtextdomain bindtextdomain__
-#    define bind_textdomain_codeset bind_textdomain_codeset__
-
-   How does this redirection work? There are two cases.
-   A. When libintl.a is linked into an executable, it works because
-      functions defined in the executable always override functions in
-      the shared libraries.
-   B. When libintl.so is used, it works because
-      1. those systems defining gettext/textdomain/... in the C library
-         (namely, Solaris 2.4 and newer, and GNU libc 2.0 and newer) are
-         ELF systems and define these symbols as weak, thus explicitly
-         letting other shared libraries override it.
-      2. those systems defining gettext/textdomain/... in a standalone
-         libintl.so library (namely, Solaris 2.3 and newer) have this
-         shared library in /usr/lib, and the linker will search /usr/lib
-         *after* the directory where the GNU gettext library is installed.
-
-   A third case, namely when libintl.a is linked into a shared library
-   whose name is not libintl.so, is not supported. In this case, on
-   Solaris, when -lintl precedes the linker option for the shared library
-   containing GNU gettext, the system's gettext would indeed override
-   the GNU gettext. Anyone doing this kind of stuff must be clever enough
-   to 1. compile libintl.a with -fPIC, 2. remove -lintl from his linker
-   command line.  */
+/* This file redirects the gettext functions (without prefix) to those
+   defined in the included GNU libintl library (with "libintl_" prefix).
+   It is compiled into libintl in order to make the AM_GNU_GETTEXT test
+   of gettext <= 0.11.2 work with the libintl library >= 0.11.3 which
+   has the redirections primarily in the <libintl.h> include file.  */
 
 
 #undef gettext
@@ -84,7 +48,7 @@ char *
 gettext (msgid)
      const char *msgid;
 {
-  return gettext__ (msgid);
+  return libintl_gettext (msgid);
 }
 
 
@@ -93,7 +57,7 @@ dgettext (domainname, msgid)
      const char *domainname;
      const char *msgid;
 {
-  return dgettext__ (domainname, msgid);
+  return libintl_dgettext (domainname, msgid);
 }
 
 
@@ -103,7 +67,7 @@ dcgettext (domainname, msgid, category)
      const char *msgid;
      int category;
 {
-  return dcgettext__ (domainname, msgid, category);
+  return libintl_dcgettext (domainname, msgid, category);
 }
 
 
@@ -113,7 +77,7 @@ ngettext (msgid1, msgid2, n)
      const char *msgid2;
      unsigned long int n;
 {
-  return ngettext__ (msgid1, msgid2, n);
+  return libintl_ngettext (msgid1, msgid2, n);
 }
 
 
@@ -124,7 +88,7 @@ dngettext (domainname, msgid1, msgid2, n)
      const char *msgid2;
      unsigned long int n;
 {
-  return dngettext__ (domainname, msgid1, msgid2, n);
+  return libintl_dngettext (domainname, msgid1, msgid2, n);
 }
 
 
@@ -136,7 +100,7 @@ dcngettext (domainname, msgid1, msgid2, n, category)
      unsigned long int n;
      int category;
 {
-  return dcngettext__ (domainname, msgid1, msgid2, n, category);
+  return libintl_dcngettext (domainname, msgid1, msgid2, n, category);
 }
 
 
@@ -144,7 +108,7 @@ char *
 textdomain (domainname)
      const char *domainname;
 {
-  return textdomain__ (domainname);
+  return libintl_textdomain (domainname);
 }
 
 
@@ -153,7 +117,7 @@ bindtextdomain (domainname, dirname)
      const char *domainname;
      const char *dirname;
 {
-  return bindtextdomain__ (domainname, dirname);
+  return libintl_bindtextdomain (domainname, dirname);
 }
 
 
@@ -162,5 +126,5 @@ bind_textdomain_codeset (domainname, codeset)
      const char *domainname;
      const char *codeset;
 {
-  return bind_textdomain_codeset__ (domainname, codeset);
+  return libintl_bind_textdomain_codeset (domainname, codeset);
 }
index 1387e70c75be8787ea131c8f52ce7d0d44af2626..ad2aebc5bae47e0aa0f4eafab620928e989c86e6 100644 (file)
@@ -40,7 +40,6 @@
    precedence over _conio_gettext.  */
 #ifdef __DJGPP__
 # undef gettext
-# define gettext gettext
 #endif
 
 /* Use _INTL_PARAMS, not PARAMS, in order to avoid clashes with identifiers
 extern "C" {
 #endif
 
+
+/* We redirect the functions to those prefixed with "libintl_".  This is
+   necessary, because some systems define gettext/textdomain/... in the C
+   library (namely, Solaris 2.4 and newer, and GNU libc 2.0 and newer).
+   If we used the unprefixed names, there would be cases where the
+   definition in the C library would override the one in the libintl.so
+   shared library.  Recall that on ELF systems, the symbols are looked
+   up in the following order:
+     1. in the executable,
+     2. in the shared libraries specified on the link command line, in order,
+     3. in the dependencies of the shared libraries specified on the link
+        command line,
+     4. in the dlopen()ed shared libraries, in the order in which they were
+        dlopen()ed.
+   The definition in the C library would override the one in libintl.so if
+   either
+     * -lc is given on the link command line and -lintl isn't, or
+     * -lc is given on the link command line before -lintl, or
+     * libintl.so is a dependency of a dlopen()ed shared library but not
+       linked to the executable at link time.
+   Since Solaris gettext() behaves differently than GNU gettext(), this
+   would be unacceptable.  */
+
+
 /* Look up MSGID in the current default message catalog for the current
    LC_MESSAGES locale.  If not found, returns MSGID itself (the default
    text).  */
+#define gettext libintl_gettext
 extern char *gettext _INTL_PARAMS ((const char *__msgid));
 
 /* Look up MSGID in the DOMAINNAME message catalog for the current
    LC_MESSAGES locale.  */
+#define dgettext libintl_dgettext
 extern char *dgettext _INTL_PARAMS ((const char *__domainname,
                                     const char *__msgid));
 
 /* Look up MSGID in the DOMAINNAME message catalog for the current CATEGORY
    locale.  */
+#define dcgettext libintl_dcgettext
 extern char *dcgettext _INTL_PARAMS ((const char *__domainname,
                                      const char *__msgid,
                                      int __category));
@@ -76,12 +102,14 @@ extern char *dcgettext _INTL_PARAMS ((const char *__domainname,
 
 /* Similar to `gettext' but select the plural form corresponding to the
    number N.  */
+#define ngettext libintl_ngettext
 extern char *ngettext _INTL_PARAMS ((const char *__msgid1,
                                     const char *__msgid2,
                                     unsigned long int __n));
 
 /* Similar to `dgettext' but select the plural form corresponding to the
    number N.  */
+#define dngettext libintl_dngettext
 extern char *dngettext _INTL_PARAMS ((const char *__domainname,
                                      const char *__msgid1,
                                      const char *__msgid2,
@@ -89,6 +117,7 @@ extern char *dngettext _INTL_PARAMS ((const char *__domainname,
 
 /* Similar to `dcgettext' but select the plural form corresponding to the
    number N.  */
+#define dcngettext libintl_dcngettext
 extern char *dcngettext _INTL_PARAMS ((const char *__domainname,
                                       const char *__msgid1,
                                       const char *__msgid2,
@@ -99,38 +128,22 @@ extern char *dcngettext _INTL_PARAMS ((const char *__domainname,
 /* Set the current default message catalog to DOMAINNAME.
    If DOMAINNAME is null, return the current default.
    If DOMAINNAME is "", reset to the default of "messages".  */
+#define textdomain libintl_textdomain
 extern char *textdomain _INTL_PARAMS ((const char *__domainname));
 
 /* Specify that the DOMAINNAME message catalog will be found
    in DIRNAME rather than in the system locale data base.  */
+#define bindtextdomain libintl_bindtextdomain
 extern char *bindtextdomain _INTL_PARAMS ((const char *__domainname,
                                           const char *__dirname));
 
 /* Specify the character encoding in which the messages from the
    DOMAINNAME message catalog will be returned.  */
+#define bind_textdomain_codeset libintl_bind_textdomain_codeset
 extern char *bind_textdomain_codeset _INTL_PARAMS ((const char *__domainname,
                                                    const char *__codeset));
 
 
-/* Optimized version of the functions above.  */
-#if defined __OPTIMIZED
-/* These are macros, but could also be inline functions.  */
-
-# define gettext(msgid)                                                              \
-  dgettext (NULL, msgid)
-
-# define dgettext(domainname, msgid)                                         \
-  dcgettext (domainname, msgid, LC_MESSAGES)
-
-# define ngettext(msgid1, msgid2, n)                                         \
-  dngettext (NULL, msgid1, msgid2, n)
-
-# define dngettext(domainname, msgid1, msgid2, n)                            \
-  dcngettext (domainname, msgid1, msgid2, n, LC_MESSAGES)
-
-#endif /* Optimizing. */
-
-
 #ifdef __cplusplus
 }
 #endif
index b42ff6a1ac4b8ed1b114f1f965f5f6df4c1322a1..69fe1f7479c80faddd098ca86dc987ed419ffc64 100644 (file)
@@ -46,8 +46,8 @@
 # define NGETTEXT __ngettext
 # define DCNGETTEXT INTUSE(__dcngettext)
 #else
-# define NGETTEXT ngettext__
-# define DCNGETTEXT dcngettext__
+# define NGETTEXT libintl_ngettext
+# define DCNGETTEXT libintl_dcngettext
 #endif
 
 /* Look up MSGID in the current default message catalog for the current
index 3ca826666af4a364cfbdd1fc8d1acb644838e5bc..c8dc33e7cf4a5b1af52d23869b7252a042a3d8f5 100644 (file)
@@ -39,7 +39,7 @@ _nl_getenv (const char *name)
 }
 
 /* A fixed size buffer.  */
-char _nl_default_dirname__[MAXPATHLEN+1];
+char libintl_nl_default_dirname[MAXPATHLEN+1];
 
 char *_nlos2_libdir = NULL;
 char *_nlos2_localealiaspath = NULL;
@@ -94,5 +94,5 @@ nlos2_initialize ()
     }
 
   if (strlen (_nlos2_localedir) <= MAXPATHLEN)
-    strcpy (_nl_default_dirname__, _nlos2_localedir);
+    strcpy (libintl_nl_default_dirname, _nlos2_localedir);
 }
index 93cdaef57fd693b20c382a448af5ba623c01c4da..9e5d1658344adb8df09b4f8ef84c9cdc742a6531 100644 (file)
@@ -98,10 +98,10 @@ struct parse_args
 # define GERMANIC_PLURAL __gettext_germanic_plural
 # define EXTRACT_PLURAL_EXPRESSION __gettext_extract_plural
 #elif defined (IN_LIBINTL)
-# define FREE_EXPRESSION gettext_free_exp__
-# define PLURAL_PARSE gettextparse__
-# define GERMANIC_PLURAL gettext_germanic_plural__
-# define EXTRACT_PLURAL_EXPRESSION gettext_extract_plural__
+# define FREE_EXPRESSION libintl_gettext_free_exp
+# define PLURAL_PARSE libintl_gettextparse
+# define GERMANIC_PLURAL libintl_gettext_germanic_plural
+# define EXTRACT_PLURAL_EXPRESSION libintl_gettext_extract_plural
 #else
 # define FREE_EXPRESSION free_plural_expression
 # define PLURAL_PARSE parse_plural_expression
index 8fb4ea085b1e68569ac4099bcd6632e4bf722745..f259c696d945cd711b016df916247fc2262df4c4 100644 (file)
@@ -44,8 +44,8 @@
    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_default_domain libintl_nl_default_default_domain
+# define _nl_current_default_domain libintl_nl_current_default_domain
 #endif
 
 /* @@ end of prolog @@ */
@@ -67,7 +67,7 @@ extern const char *_nl_current_default_domain attribute_hidden;
 #  define strdup(str) __strdup (str)
 # endif
 #else
-# define TEXTDOMAIN textdomain__
+# define TEXTDOMAIN libintl_textdomain
 #endif
 
 /* Lock variable to protect the global data in the gettext implementation.  */
index f7e4b9b6529d4a29e04c946d7e7675a58a80c4f5..8692efefa0787036db2fa5a782944109ef4fb0d1 100644 (file)
@@ -1,3 +1,10 @@
+2002-04-27  Bruno Haible  <bruno@clisp.org>
+
+       * plural-1-prg.c: No need to redirect textdomain() etc., now done in
+       libgnuintl.h.
+       * tstgettext.c: Likewise.
+       * tstngettext.c: Likewise.
+
 2002-04-24  Bruno Haible  <bruno@clisp.org>
 
        * gettext-0.11.2 released.
index fa5d0a250199ab83affcac5c5e737de7c6c2bd01..e1acd2db79f9298a86cb8b24cd2097abc921e9d8 100644 (file)
@@ -1,4 +1,19 @@
-/* Test program, used by the plural-1 test.  */
+/* Test program, used by the plural-1 test.
+   Copyright (C) 2001-2002 Free Software Foundation, Inc.
+
+   This program is free software; you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by
+   the Free Software Foundation; either version 2, or (at your option)
+   any later version.
+
+   This program is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with this program; if not, write to the Free Software Foundation,
+   Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
 
 #ifdef HAVE_CONFIG_H
 # include <config.h>
@@ -10,9 +25,6 @@
 #include "xsetenv.h"
 
 /* Make sure we use the included libintl, not the system's one. */
-#define textdomain textdomain__
-#define bindtextdomain bindtextdomain__
-#define ngettext ngettext__
 #undef _LIBINTL_H
 #include "libgnuintl.h"
 
index 90efb698bd7fcf3a39100cf42b94e27bc2b99c9c..e19b18739eb775e4f0d6e2694cdc41b9834efca4 100644 (file)
 
 #define HAVE_SETLOCALE 1
 /* Make sure we use the included libintl, not the system's one. */
-#define textdomain textdomain__
-#define bindtextdomain bindtextdomain__
-#define gettext gettext__
-#define dgettext dgettext__
 #undef _LIBINTL_H
 #include "libgnuintl.h"
 
index 3089073ee467adf2d4cc3d2d8368513c68f04ef5..4a2c6774e4633f676b0ff09c8de244d0f418e7ad 100644 (file)
 
 #define HAVE_SETLOCALE 1
 /* Make sure we use the included libintl, not the system's one. */
-#define textdomain textdomain__
-#define bindtextdomain bindtextdomain__
-#define gettext gettext__
-#define dngettext dngettext__
 #undef _LIBINTL_H
 #include "libgnuintl.h"