From: Andrzej K. Haczewski Date: Wed, 04 Nov 2009 10:56:00 GMT Subject: Re: [PATCH] MSVC: port pthread code to native Windows threads Message-ID: <16cee31f0911040256s1c69e86j46ac573b4ef33017@mail.gmail.com> In-Reply-To: <40aa078e0911040250k55fa1920g6eee5657c6e35345@mail.gmail.com> 2009/11/4 Erik Faye-Lund : > > Seeing how THREAD_RETURN is only called with NULL-parameter, perhaps > it would be better to do this? > > +/* > + * Properly defines thread routine for Windows and POSIX > + */ > +#ifndef NO_PTHREADS > +# ifndef _WIN32 > +#  define THREAD_FUNC(f, a) void *f(void *a) > +#  define THREAD_RETURN() return NULL; > +# else > +#  define THREAD_FUNC(f, a) DWORD __stdcall f(LPVOID a) > +#  define THREAD_RETURN() return 0; > +# endif > +#endif Good point. Should I resubmit the patch again? Andrew