Update.
[platform/upstream/glibc.git] / include / libintl.h
1 #ifndef _LIBINTL_H
2 #include <intl/libintl.h>
3
4 /* Now define the internal interfaces.  */
5 extern char *__gettext __P ((__const char *__msgid));
6 extern char *__textdomain __P ((__const char *__domainname));
7 extern char *__bindtextdomain __P ((__const char *__domainname,
8                                     __const char *__dirname));
9 extern const char _libc_intl_domainname[];
10
11 /* Define the macros `_' and `N_' for conveniently marking translatable
12    strings in the libc source code.  We have to make sure we get the
13    correct definitions so we undefine the macros first.  */
14
15 # undef N_
16 # define N_(msgid)      msgid
17
18 # undef _
19 # ifdef dgettext
20 /* This is defined as an optimizing macro, so use it.  */
21 #  define _(msgid)      dgettext (_libc_intl_domainname, (msgid))
22 # else
23 /* Be sure to use only the __ name when `dgettext' is a plain function
24    instead of an optimizing macro.  */
25 #  define _(msgid)      __dgettext (_libc_intl_domainname, (msgid))
26 # endif
27
28 #endif