mirror of
https://github.com/neovim/neovim.git
synced 2025-09-17 00:38:17 +00:00
Stub ngettext when libintl isn't available
This should have been included in #6547 as part of vim-patch:7.4.2152. Closes #7352
This commit is contained in:
@@ -46,6 +46,7 @@ check_c_source_compiles("
|
||||
|
||||
int main(int argc, char** argv) {
|
||||
gettext(\"foo\");
|
||||
ngettext(\"foo\", \"bar\", 1);
|
||||
bindtextdomain(\"foo\", \"bar\");
|
||||
bind_textdomain_codeset(\"foo\", \"bar\");
|
||||
textdomain(\"foo\");
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user