summaryrefslogtreecommitdiff
path: root/git-compat-util.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2015-02-11 13:42:00 -0800
committerJunio C Hamano <gitster@pobox.com>2015-02-11 13:42:00 -0800
commitb19aab58f1bc44e9a6715f26ba32b8c9cda3b1fa (patch)
tree9d635234f5f32ffcb4524dcdeb0373c4476f2427 /git-compat-util.h
parent1c4ebbc3ad25943c231db14e7e4fd757590fbfa9 (diff)
parent290c8e7a3fe182ff64c3e6b76fbbbc6dcff4727c (diff)
downloadgit-b19aab58f1bc44e9a6715f26ba32b8c9cda3b1fa.tar.gz
Merge branch 'km/gettext-n'
* km/gettext-n: gettext.h: add parentheses around N_ expansion if supported
Diffstat (limited to 'git-compat-util.h')
-rw-r--r--git-compat-util.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/git-compat-util.h b/git-compat-util.h
index 553fc01762..68c07af9d4 100644
--- a/git-compat-util.h
+++ b/git-compat-util.h
@@ -875,4 +875,8 @@ struct tm *git_gmtime_r(const time_t *, struct tm *);
#define gmtime_r git_gmtime_r
#endif
+#if !defined(USE_PARENS_AROUND_GETTEXT_N) && defined(__GNUC__)
+#define USE_PARENS_AROUND_GETTEXT_N 1
+#endif
+
#endif