Update.
[glibc.git] / include / libintl.h
blobdc54ccfc7b782aab23f4350eb848162e577304bb
1 #ifndef _LIBINTL_H
2 #include <intl/libintl.h>
3 #include <locale.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. */
22 # undef N_
23 # define N_(msgid) msgid
25 # undef _
26 /* This is defined as an optimizing macro, so use it. */
27 # define _(msgid) __dcgettext (_libc_intl_domainname, (msgid), LC_MESSAGES)
29 #endif