#ifdef __CYGWIN__
# ifndef WIN32
-# include <sys/cygwin.h> /* for cygwin_conv_to_posix_path() */
+# include <cygwin/version.h>
+# include <sys/cygwin.h> /* for cygwin_conv_to_posix_path() and/or
+ * cygwin_conv_path() */
# endif
# include <limits.h>
#endif
{
char posix_path[PATH_MAX];
+# if CYGWIN_VERSION_DLL_MAJOR >= 1007
+ cygwin_conv_path(CCP_WIN_A_TO_POSIX, p, posix_path, PATH_MAX);
+# else
cygwin_conv_to_posix_path(p, posix_path);
+# endif
vim_free(p);
p = vim_strsave(posix_path);
if (p == NULL)
#ifdef __CYGWIN__
# ifndef WIN32
-# include <sys/cygwin.h> /* for cygwin_conv_to_posix_path() */
+# include <cygwin/version.h>
+# include <sys/cygwin.h> /* for cygwin_conv_to_posix_path() and/or
+ * for cygwin_conv_path() */
# endif
#endif
/*
* This helps for when "/etc/hosts" is a symlink to "c:/something/hosts".
*/
+# if CYGWIN_VERSION_DLL_MAJOR >= 1007
+ cygwin_conv_path(CCP_WIN_A_TO_POSIX, fname, posix_fname, MAXPATHL);
+# else
cygwin_conv_to_posix_path(fname, posix_fname);
+# endif
fname = posix_fname;
#endif
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 9,
/**/
8,
/**/