]> git.proxmox.com Git - wasi-libc.git/blame - libc-top-half/musl/include/libintl.h
Don't define `_POSIX_THREADS` unless threads are enabled. (#356)
[wasi-libc.git] / libc-top-half / musl / include / libintl.h
CommitLineData
320054e8
DG
1#ifndef _LIBINTL_H
2#define _LIBINTL_H
3
4#ifdef __cplusplus
5extern "C" {
6#endif
7
8#define __USE_GNU_GETTEXT 1
9#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 1 : -1)
10
11#if __GNUC__ >= 3
12#define __fa(n) __attribute__ ((__format_arg__ (n)))
13#else
14#define __fa(n)
15#endif
16
17char *gettext(const char *) __fa(1);
18char *dgettext(const char *, const char *) __fa(2);
19char *dcgettext(const char *, const char *, int) __fa(2);
20char *ngettext(const char *, const char *, unsigned long) __fa(1) __fa(2);
21char *dngettext(const char *, const char *, const char *, unsigned long) __fa(2) __fa(3);
22char *dcngettext(const char *, const char *, const char *, unsigned long, int) __fa(2) __fa(3);
23char *textdomain(const char *);
24char *bindtextdomain (const char *, const char *);
25char *bind_textdomain_codeset(const char *, const char *);
26
27#undef __fa
28
29#ifdef __cplusplus
30}
31#endif
32
33#endif