2 #include <intl/libintl.h>
5 /* Now define the internal interfaces. */
6 extern char *__gettext (__const
char *__msgid
);
7 extern char *__dgettext (__const
char *__domainname
,
8 __const
char *__msgid
);
9 extern char *__dcgettext (__const
char *__domainname
,
10 __const
char *__msgid
, int __category
);
11 extern char *__textdomain (__const
char *__domainname
);
12 extern char *__bindtextdomain (__const
char *__domainname
,
13 __const
char *__dirname
);
14 extern char *__bind_textdomain_codeset (__const
char *__domainname
,
15 __const
char *__codeset
);
16 extern const char _libc_intl_domainname
[];
18 /* Define the macros `_' and `N_' for conveniently marking translatable
19 strings in the libc source code. We have to make sure we get the
20 correct definitions so we undefine the macros first. */
23 # define N_(msgid) msgid
26 /* This is defined as an optimizing macro, so use it. */
27 # define _(msgid) __dcgettext (_libc_intl_domainname, (msgid), LC_MESSAGES)