Emulate ngettext for the non-nls case

This commit is contained in:
Todd C. Miller
2011-05-18 13:44:07 -04:00
parent 27cb585142
commit 0954a1b1c0
2 changed files with 4 additions and 0 deletions

View File

@@ -880,6 +880,8 @@
# define N_(String) String # define N_(String) String
# define textdomain(Domain) # define textdomain(Domain)
# define bindtextdomain(Package, Directory) # define bindtextdomain(Package, Directory)
# define ngettext(String, String_Plural, N) \
((N) == 1 ? (String) : (String_Plural))
#endif /* HAVE_LIBINTL_H */ #endif /* HAVE_LIBINTL_H */
/* New ANSI-style OS defs for HP-UX and ConvexOS. */ /* New ANSI-style OS defs for HP-UX and ConvexOS. */

View File

@@ -3150,6 +3150,8 @@ AH_BOTTOM([/*
# define N_(String) String # define N_(String) String
# define textdomain(Domain) # define textdomain(Domain)
# define bindtextdomain(Package, Directory) # define bindtextdomain(Package, Directory)
# define ngettext(String, String_Plural, N) \
((N) == 1 ? (String) : (String_Plural))
#endif /* HAVE_LIBINTL_H */ #endif /* HAVE_LIBINTL_H */
/* New ANSI-style OS defs for HP-UX and ConvexOS. */ /* New ANSI-style OS defs for HP-UX and ConvexOS. */