Hi Bram and list, A build error has occurred with the following configure on Fedora 23.
$ make distclean $ ./configure --with-features=small --enable-gui=gnome2 --enable-fail-if-missing $ make In file included from gui_gtk.c:34:0: /usr/include/libintl.h:61:14: error: expected identifier or '(' before 'unsigned' extern char *ngettext (const char *__msgid1, const char *__msgid2, ^ vim.h:606:35: error: expected ')' before '==' token # define ngettext(x, xs, n) (((n) == 1) ? (char *)(x) : (char *)(xs)) ^ vim.h:606:41: error: expected ')' before '?' token # define ngettext(x, xs, n) (((n) == 1) ? (char *)(x) : (char *)(xs)) ^ Makefile:2971: recipe for target 'objects/gui_gtk.o' failed make[1]: *** [objects/gui_gtk.o] Error 1 make[1]: Leaving directory '/home/h_east/samba/github/vim/src' Makefile:26: recipe for target 'first' failed make: *** [first] Error 2 I wrote a patch. But I don't know this patch is correct... -- Best regards, Hirohito Higashi (a.k.a. h_east) -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
diff --git a/src/vim.h b/src/vim.h index ef75ea2..f86589f 100644 --- a/src/vim.h +++ b/src/vim.h @@ -603,7 +603,9 @@ extern char *(*dyn_libintl_textdomain)(const char *domainname); # endif #else # define _(x) ((char *)(x)) -# define ngettext(x, xs, n) (((n) == 1) ? (char *)(x) : (char *)(xs)) +# ifndef FEAT_GUI_GTK +# define ngettext(x, xs, n) (((n) == 1) ? (char *)(x) : (char *)(xs)) +# endif # define N_(x) x # ifdef bindtextdomain # undef bindtextdomain