* [PATCH v2] Fix symlink __stdcall problem at MSVC
@ 2009-08-20 14:21 Frank Li
2009-08-21 2:42 ` Frank Li
2009-08-21 2:57 ` Frank Li
0 siblings, 2 replies; 3+ messages in thread
From: Frank Li @ 2009-08-20 14:21 UTC (permalink / raw)
To: git, msysgit; +Cc: Frank Li
MSVC requires that __stdcall be between return value and function name.
Further, all Win32 API definitions look like this:
TYPE WINAPI function_name...
Signed-off-by: Frank Li <lznuaa@gmail.com>
---
compat/mingw.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/compat/mingw.c b/compat/mingw.c
index fd642e4..4256243 100644
--- a/compat/mingw.c
+++ b/compat/mingw.c
@@ -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(
--
1.6.4.msysgit.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH v2] Fix symlink __stdcall problem at MSVC
2009-08-20 14:21 [PATCH v2] Fix symlink __stdcall problem at MSVC Frank Li
@ 2009-08-21 2:42 ` Frank Li
2009-08-21 2:57 ` Frank Li
1 sibling, 0 replies; 3+ messages in thread
From: Frank Li @ 2009-08-21 2:42 UTC (permalink / raw)
To: git, msysgit, Johannes Schindelin; +Cc: Frank Li
>
> 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(
> --
> 1.6.4.msysgit.0
>
This is new patch for latest devel branch mingw.c.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v2] Fix symlink __stdcall problem at MSVC
2009-08-20 14:21 [PATCH v2] Fix symlink __stdcall problem at MSVC Frank Li
2009-08-21 2:42 ` Frank Li
@ 2009-08-21 2:57 ` Frank Li
1 sibling, 0 replies; 3+ messages in thread
From: Frank Li @ 2009-08-21 2:57 UTC (permalink / raw)
To: git, msysgit, Johannes Schindelin; +Cc: Frank Li
>
> 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(
> --
> 1.6.4.msysgit.0
>
This is new patch for latest devel branch mingw.c.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-08-21 2:57 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-20 14:21 [PATCH v2] Fix symlink __stdcall problem at MSVC Frank Li
2009-08-21 2:42 ` Frank Li
2009-08-21 2:57 ` Frank Li
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).