From 00f2d33f37da42e17e5d978958659c4899cb2f0a Mon Sep 17 00:00:00 2001 From: Ron Yorston Date: Mon, 26 Feb 2018 10:08:50 +0000 Subject: win32: add support for batch files Support batch files with .bat and .cmd extensions, similar to what's done for .exe and .com. Check extensions in the same order as Windows' spawn function: .com, .exe, .bat, .cmd. --- include/mingw.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/mingw.h b/include/mingw.h index 8f7e529ba..09c140d31 100644 --- a/include/mingw.h +++ b/include/mingw.h @@ -475,6 +475,7 @@ const char *get_busybox_exec_path(void); void init_winsock(void); int has_exe_suffix(const char *p); +int has_bat_suffix(const char *p); char *file_is_win32_executable(const char *p); int err_win_to_posix(DWORD winerr); -- cgit v1.2.3-55-g6feb