All of lore.kernel.org
 help / color / mirror / Atom feed
* quick question about __stdcall at run-command.c mingw.c
@ 2009-08-16 23:19 Frank Li
  2009-08-17  0:03 ` [msysGit] " Pat Thoyts
  0 siblings, 1 reply; 6+ messages in thread
From: Frank Li @ 2009-08-16 23:19 UTC (permalink / raw)
  To: git, msysGit


I am tring to clear VC build patch.

I found __stdcall position break MSVC build.

static __stdcall unsigned run_thread(void *data)

MSVC require __stdcall should be between return type and function name.
like
static unsigned __stdcall run_thread(void *data)

I think msys gcc should support MSVC format.

Should I directly change to MSVC format or add _MSC_VER marcro like

#if defined(__MINGW32__)
static __stdcall unsigned run_thread(void *data)
#elif defined(_MSC_VER) /*MSVC must put __stdcall between return value
and function*/
static unsigned __stdcall run_thread(void *data)
#endif

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-08-17  9:12 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-16 23:19 quick question about __stdcall at run-command.c mingw.c Frank Li
2009-08-17  0:03 ` [msysGit] " Pat Thoyts
2009-08-17  7:52   ` Johannes Sixt
2009-08-17  8:21     ` Johannes Schindelin
2009-08-17  8:43       ` Johannes Sixt
2009-08-17  9:12         ` Johannes Schindelin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.