# HG changeset patch # User Mark Doliner # Date 1056935615 0 # Node ID 7cce6643c51e52c0bcf1d7bfffbf0a6c1dda0b27 # Parent 80e5258226f3a50ef38af7d43c90408e28369744 [gaim-migrate @ 6423] This gets rid of a lot of ngettext cast-related warnings when compiling with --disable-nls. I was actually going to use a #define similar to the one in this commit, but then I did some digging and found one with a ternary operator, which I hadn't thought of. It's pretty slick, methinks. committer: Tailor Script diff -r 80e5258226f3 -r 7cce6643c51e src/internal.h --- a/src/internal.h Sun Jun 29 20:57:28 2003 +0000 +++ b/src/internal.h Mon Jun 30 01:13:35 2003 +0000 @@ -38,7 +38,13 @@ #else # define N_(String) (String) # define _(x) (x) +# define ngettext(Singular, Plural, Number) ((Number == 1) ? (Singular) : (Plural)) #endif +/* + * The Singular/Plural/Number ngettext define above was taken from + * an email to the texinfo mailing list by Manuel Guerrero. Thank + * you Manuel, and thank you Alex's good friend Google. + */ #ifdef HAVE_ENDIAN_H # include