e09b8d093023ffbe30426cbf8ada9f250279bb96
2 * This code is lifted from http://permalink.gmane.org/gmane.linux.gentoo.embedded/3218
11 #if defined(__UCLIBC__) && !defined(__UCLIBC_HAS_GETTEXT_AWARENESS__)
13 /* Undef gettext macros, if any... */
22 #undef bind_textdomain_codeset
24 /* part of locale.h */
25 /* #undef setlocale */
30 /* Define gettext stubs that map back to the original strings */
31 #define gettext(String) (String)
32 #define dgettext(Domain, String) (String)
33 #define dcgettext(Domain, String, Type) (String)
34 #define dgettext(Domain, String) (String)
35 #define dcgettext(Domain, String, Type) (String)
37 #define ngettext(Singular, Plural, Count) \
38 ((Count) == 1 ? (const char *) (Singular) : (const char *) (Plural))
40 #define dngettext(Domain, Singular, Plural, Count) \
41 ((Count) == 1 ? (const char *) (Singular) : (const char *) (Plural))
43 #define dcngettext(Domain, Singular, Plural, Count, Category) \
44 ((Count) == 1 ? (const char *) (Singular) : (const char *) (Plural))
46 #define _(String) (String)
47 #define N_(String) (String)
50 /* #define setlocale(Category, Locale) ((char *)NULL) */
53 /* No-ops for textdomain operations */
54 #define bindtextdomain(Domain, Directory) (Domain)
55 #define bind_textdomain_codeset(Domain, Codeset) (Codeset)
56 #define textdomain(String) (String) ?: "messages"
59 #endif /* _LIBINTL_H */