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 *__dcgettext_internal (__const char *__domainname,
12 __const char *__msgid, int __category)
14 extern char *__textdomain (__const char *__domainname);
15 extern char *__bindtextdomain (__const char *__domainname,
16 __const char *__dirname);
17 extern char *__bind_textdomain_codeset (__const char *__domainname,
18 __const char *__codeset);
19 extern const char _libc_intl_domainname[];
20 extern const char _libc_intl_domainname_internal[] attribute_hidden;
22 /* Define the macros `_' and `N_' for conveniently marking translatable
23 strings in the libc source code. We have to make sure we get the
24 correct definitions so we undefine the macros first. */
27 # define N_(msgid) msgid
30 /* This is defined as an optimizing macro, so use it. */
31 # if !defined NOT_IN_libc && defined SHARED
33 __dcgettext_internal (_libc_intl_domainname_internal, (msgid), LC_MESSAGES)
36 __dcgettext (_libc_intl_domainname, (msgid), LC_MESSAGES)