From 349fcbf355e54956f4b3b8a60aec8fe75c172800 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Mon, 7 Mar 2016 18:50:05 +0100 Subject: [PATCH] common.h: handle NY/PNY macros correctly when compiling without gettext --- src/common/common.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/common.h b/src/common/common.h index f9485add1..3234cc256 100644 --- a/src/common/common.h +++ b/src/common/common.h @@ -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