Fix symlink __stdcall problem at MSVC
PATCH 1/1 Fix symlink __stdcall problem at MSVC
MSVC requires that __stdcall be between return value and function name. Further, all Win32 API definitions look like this:
Signed-off-by Frank Li <[email protected]>
--- compat/mingw.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
compat/mingw.c +1 -1
@@ -1421,7 +1421,7 @@ int link(const char *oldpath, const char *newpath)int symlink (const char *oldpath,const char *newpath) { - typedef BOOL WINAPI (*symlink_fn)(const char*, const char*, DWORD); + typedef BOOL (WINAPI *symlink_fn)(const char*, const char*, DWORD);static symlink_fn create_symbolic_link =NULL ;if (!create_symbolic_link) { create_symbolic_link = (symlink_fn) GetProcAddress(
Signature · 1 line
1.6.4.msysgit.0
Hi,
Quoted 5 lines · Frank Li
MSVC requires that
__stdcallbe between return value and function name. Further, all Win32 API definitions look like this:Signed-off-by Frank Li <[email protected]>---
Like what? Seems you did not paste my complete commit message.
Ciao,
Dscho
Quoted 3 lines
Like what? Seems you did not paste my complete commit message.
Yes, Sorry about this