aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJames McCoy <jamessan@jamessan.com>2017-10-03 17:29:27 -0400
committerGitHub <noreply@github.com>2017-10-03 17:29:27 -0400
commit07a0685b48f298fb9dde395b39164c91ab314864 (patch)
tree3025edaf5be592e1ba42c6f735d08faba7322870 /src
parent01e53a5cbe676181629ef63731b980c453c0bd62 (diff)
parent235fda5f86d80b1aa7d7cbcb41e3399c556b7455 (diff)
downloadrneovim-07a0685b48f298fb9dde395b39164c91ab314864.tar.gz
rneovim-07a0685b48f298fb9dde395b39164c91ab314864.tar.bz2
rneovim-07a0685b48f298fb9dde395b39164c91ab314864.zip
Merge pull request #7355 from jamessan/ngettext-fix
Stub ngettext when libintl isn't available
Diffstat (limited to 'src')
-rw-r--r--src/nvim/gettext.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/gettext.h b/src/nvim/gettext.h
index aa0e97233e..60317b8484 100644
--- a/src/nvim/gettext.h
+++ b/src/nvim/gettext.h
@@ -13,6 +13,7 @@
#else
# define _(x) ((char *)(x))
# define N_(x) x
+# define ngettext(x, xs, n) ((n) == 1 ? (x) : (xs))
# define bindtextdomain(x, y) // empty
# define bind_textdomain_codeset(x, y) // empty
# define textdomain(x) // empty