John Marriott wrote: > I get this an error compiling on Win64: > > os_win32.c:3384:1: error: conflicting types for 'mch_can_exe' > mch_can_exe(char_u *name, char_u **path) > ^ > In file included from proto.h:53:0, > from vim.h:1974, > from os_win32.c:23: > proto/os_win32.pro:29:5: note: previous declaration of 'mch_can_exe' was > here > int mch_can_exe __ARGS((char_u *name, char_u **path, int use_path)); > ^ > Make_cyg_ming.mak:781: recipe for target 'gobjnative/os_win32.o' failed > > > This patch changes the prototype for the function mch_can_exe() by > adding the argument "int use_path", but the function itself was not > changed accordingly.
Sorry, forgot to include this file in the patch. Will send out a followup patch. Note that I didn't check non-Unix systems if it works (mostly) correctly now. On MS-Windows there is no "executable" flag, thus we just check if the file exists and is not a directory. -- The early bird gets the worm. The second mouse gets the cheese. /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org /// -- -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
