From 642f85faab27adec13eced36cd7e7548311f6c87 Mon Sep 17 00:00:00 2001 From: Ramsay Jones Date: Thu, 7 Apr 2011 19:41:48 +0100 Subject: [PATCH] i18n: avoid parenthesized string as array initializer MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit The syntax static const char ignore_error[] = ("something"); is invalid C. A parenthesized string is not allowed as an array initializer. Some compilers, for example GCC and MSVC, allow this syntax as an extension, but it is not a portable construct. tcc does not parse it, for example. Remove the parenthesis from the definition of the N_() macro to fix this. Signed-off-by: Ramsay Jones Acked-by: Jonathan Nieder Acked-by: Ævar Arnfjörð Bjarmason Signed-off-by: Junio C Hamano --- gettext.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gettext.h b/gettext.h index 1b253b7e76..24d91824e5 100644 --- a/gettext.h +++ b/gettext.h @@ -35,6 +35,6 @@ const char *Q_(const char *msgid, const char *plu, unsigned long n) } /* Mark msgid for translation but do not translate it. */ -#define N_(msgid) (msgid) +#define N_(msgid) msgid #endif -- 2.39.2