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)
35 #define ngettext(Singular, Plural, Count) \
36 ((Count) == 1 ? (const char *) (Singular) : (const char *) (Plural))
38 #define dngettext(Domain, Singular, Plural, Count) \
39 ((Count) == 1 ? (const char *) (Singular) : (const char *) (Plural))
41 #define dcngettext(Domain, Singular, Plural, Count, Category) \
42 ((Count) == 1 ? (const char *) (Singular) : (const char *) (Plural))
44 #define _(String) (String)
45 #define N_(String) (String)
48 /* #define setlocale(Category, Locale) ((char *)NULL) */
51 /* No-ops for textdomain operations */
52 #define bindtextdomain(Domain, Directory) (Domain)
53 #define bind_textdomain_codeset(Domain, Codeset) (Codeset)
54 #define textdomain(String) (String) ?: "messages"
57 #endif /* _LIBINTL_H */