gcc -c -Iproto -DWIN32 -DWINVER=0x0500 -D_WIN32_WINNT=0x0500 -DHAVE_PATHDEF -DFEAT_BIG -DMS_WIN64 -DHAVE_GETTEXT -DHAVE_LOCALE_H -DDYNAMIC_GETTEXT -DFEAT_OLE -DFEAT_CSCOPE -DFEAT_MBYTE -DFEA
T_MBYTE_IME -DDYNAMIC_IME -DDYNAMIC_ICONV -pipe -w -march=x86-64 -Wall -Id:/tools/perl/lib/Core -DFEAT_PERL -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DDYNAMIC_PERL -DDYNAMIC_PERL_DLL=\"pe
rl522.dll\" -DFEAT_PYTHON -DDYNAMIC_PYTHON -DDYNAMIC_PYTHON_DLL=\"python27.dll\" -O3 -fomit-frame-pointer -freg-struct-return -s os_win32.c -o objx86-64/os_win32.o
os_win32.c: In function 'mch_start_job':
os_win32.c:5102:1: error: label at end of compound statement
failed:
^
Make_cyg_ming.mak:852: recipe for target 'objx86-64/os_win32.o' failed
make: *** [objx86-64/os_win32.o] Error 1
I don't think the following hunk should be applied:
--- a/src/os_win32.c
+++ b/src/os_win32.c
@@ -5175,8 +5175,10 @@ mch_stop_job(job_T *job, char_u *how)
return TerminateProcess(job->jv_proc_info.hProcess, 0) ? OK : FAIL;
}
+#ifndef __MINGW32__
if (!AttachConsole(job->jv_proc_info.dwProcessId))
return FAIL;
+#endif
ret = GenerateConsoleCtrlEvent(
ctrl_c ? CTRL_C_EVENT : CTRL_BREAK_EVENT,
job->jv_proc_info.dwProcessId)
MinGW is too old now. We should use MinGW-w64 (MSYS2) instead.
MinGW-w64 is available on the following path on AppVeyor:
32 bit target: C:\msys64\mingw32\bin
64 bit target: C:\msys64\mingw64\bin
Regards,
Ken Takata
> MinGW is too old now. We should use MinGW-w64 (MSYS2) instead.
> MinGW-w64 is available on the following path on AppVeyor:
>
> 32 bit target: C:\msys64\mingw32\bin
> 64 bit target: C:\msys64\mingw64\bin
Should we get it with LoadLibrary/GetProcAddress?
- mattn
2016/2/17 Wed 18:00:10 UTC+9 Ken Takata wrote:
> I don't think the following hunk should be applied:
>
> --- a/src/os_win32.c
> +++ b/src/os_win32.c
> @@ -5175,8 +5175,10 @@ mch_stop_job(job_T *job, char_u *how)
> return TerminateProcess(job->jv_proc_info.hProcess, 0) ? OK : FAIL;
> }
>
> +#ifndef __MINGW32__
> if (!AttachConsole(job->jv_proc_info.dwProcessId))
> return FAIL;
> +#endif
> ret = GenerateConsoleCtrlEvent(
> ctrl_c ? CTRL_C_EVENT : CTRL_BREAK_EVENT,
> job->jv_proc_info.dwProcessId)
>
>
> MinGW is too old now. We should use MinGW-w64 (MSYS2) instead.
> MinGW-w64 is available on the following path on AppVeyor:
Or, how about setting WINVER to 0x0501? (Currently it is 0x0500.)
Regards,
Ken Takata