summaryrefslogtreecommitdiff
path: root/run-command.c
diff options
context:
space:
mode:
authorFrank Li <lznuaa@gmail.com>2009-09-16 08:20:21 (GMT)
committerJunio C Hamano <gitster@pobox.com>2009-09-19 03:00:42 (GMT)
commitd7fa500fb598d725bda3427535e87f06caf93ee8 (patch)
tree763fd4ec5dff827dd9248c4619e6840769f16773 /run-command.c
parenta6ca8c62467570d5d227eba4f2b838ce4b9940e8 (diff)
downloadgit-d7fa500fb598d725bda3427535e87f06caf93ee8.zip
git-d7fa500fb598d725bda3427535e87f06caf93ee8.tar.gz
git-d7fa500fb598d725bda3427535e87f06caf93ee8.tar.bz2
Fix __stdcall placement and function prototype
MSVC requires __stdcall to be between the functions return value and the function name, and that the function pointer type is in the form of return_type (WINAPI *function_name)(arguments...) Signed-off-by: Frank Li <lznuaa@gmail.com> Signed-off-by: Marius Storm-Olsen <mstormo@gmail.com> Acked-by: Johannes Sixt <j6t@kdbg.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'run-command.c')
-rw-r--r--run-command.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/run-command.c b/run-command.c
index 02aaedf..bb76750 100644
--- a/run-command.c
+++ b/run-command.c
@@ -316,7 +316,7 @@ int run_command_v_opt_cd_env(const char **argv, int opt, const char *dir, const
}
#ifdef __MINGW32__
-static __stdcall unsigned run_thread(void *data)
+static unsigned __stdcall run_thread(void *data)
{
struct async *async = data;
return async->proc(async->fd_for_proc, async->data);