common.h: handle NY/PNY macros correctly when compiling without gettext

This commit is contained in:
Moritz Bunkus 2016-03-07 18:50:05 +01:00
parent cbe39f6b68
commit 349fcbf355

View File

@ -84,9 +84,9 @@ namespace brng = boost::range;
#else /* HAVE_LIBINTL_H */
# if !defined Y
# define Y(s) (s)
# define NY(s_singular, s_plural, count) (s_singular)
# define NY(s_singular, s_plural, count) ((count) != 1 ? (s_plural) : (s_singular))
# define PY(context, s) (s)
# define PNY(context, s_singular, s_plural, count) (s_singular)
# define PNY(context, s_singular, s_plural, count) ((count) != 1 ? (s_plural) : (s_singular))
# endif
#endif