1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-30 22:43:12 +03:00
* include/libintl.h: Undefine N_ and _ first to avoid warnings.
This commit is contained in:
Ulrich Drepper
1999-07-23 23:10:36 +00:00
parent 06535ae948
commit 49e49bf08b
2 changed files with 6 additions and 1 deletions

View File

@ -9,10 +9,13 @@ extern char *__bindtextdomain __P ((__const char *__domainname,
extern const char _libc_intl_domainname[];
/* Define the macros `_' and `N_' for conveniently marking translatable
strings in the libc source code. */
strings in the libc source code. We have to make sure we get the
correct definitions so we undefine the macros first. */
# undef N_
# define N_(msgid) msgid
# undef _
# ifdef dgettext
/* This is defined as an optimizing macro, so use it. */
# define _(msgid) dgettext (_libc_intl_domainname, (msgid))