S390: Remove backchain-based fallback and use generic backtrace.c.
[glibc.git] / include / libintl.h
blob9a11367ec64fd0590b76334ab1729075c980968d
1 #ifndef _LIBINTL_H
2 #include <intl/libintl.h>
4 # ifndef _ISOMAC
6 #include <locale.h>
8 /* Now define the internal interfaces. */
9 extern char *__gettext (const char *__msgid)
10 __attribute_format_arg__ (1);
11 extern char *__dgettext (const char *__domainname,
12 const char *__msgid)
13 __attribute_format_arg__ (2);
14 extern char *__dcgettext (const char *__domainname,
15 const char *__msgid, int __category)
16 __attribute_format_arg__ (2);
17 libc_hidden_proto (__dcgettext)
19 extern char *__ngettext (const char *__msgid1, const char *__msgid2,
20 unsigned long int __n)
21 __attribute_format_arg__ (1) __attribute_format_arg__ (2);
22 extern char *__dngettext (const char *__domainname,
23 const char *__msgid1, const char *__msgid2,
24 unsigned long int __n)
25 __attribute_format_arg__ (2) __attribute_format_arg__ (3);
26 extern char *__dcngettext (const char *__domainname,
27 const char *__msgid1, const char *__msgid2,
28 unsigned long int __n, int __category)
29 __attribute_format_arg__ (2) __attribute_format_arg__ (3);
31 extern char *__textdomain (const char *__domainname);
32 extern char *__bindtextdomain (const char *__domainname,
33 const char *__dirname);
34 extern char *__bind_textdomain_codeset (const char *__domainname,
35 const char *__codeset);
37 extern const char _libc_intl_domainname[];
38 libc_hidden_proto (_libc_intl_domainname)
40 /* Define the macros `_' and `N_' for conveniently marking translatable
41 strings in the libc source code. We have to make sure we get the
42 correct definitions so we undefine the macros first. */
44 # undef N_
45 # define N_(msgid) msgid
47 # undef _
48 /* This is defined as an optimizing macro, so use it. */
49 # define _(msgid) \
50 __dcgettext (_libc_intl_domainname, msgid, LC_MESSAGES)
52 # endif /* !_ISOMAC */
53 #endif