> diff --git a/mingw-w64-libraries/winpthreads/include/pthread.h > b/mingw-w64-libraries/winpthreads/include/pthread.h > index 0ab7fef11..4ce815c64 100644 > --- a/mingw-w64-libraries/winpthreads/include/pthread.h > +++ b/mingw-w64-libraries/winpthreads/include/pthread.h > @@ -307,7 +307,7 @@ unsigned WINPTHREAD_API _pthread_get_state(const > pthread_attr_t *attr, unsigned > int WINPTHREAD_API _pthread_set_state(pthread_attr_t *attr, unsigned > flag, unsigned val); > int WINPTHREAD_API pthread_setcancelstate(int state, int *oldstate); > int WINPTHREAD_API pthread_setcanceltype(int type, int *oldtype); > -int WINPTHREAD_API pthread_create_wrapper(void *args); > +unsigned WINPTHREAD_API WINAPI pthread_create_wrapper(void *args);
I've made the mistake that WINAPI is defined in windows.h, which now needs to be included before pthread.h. I believe that __stdcall should be used directly, instead of being hidden behind the macro. Should I send a v4 patch series, or a new revision later? or could the commit be fixed when/if the patch series is accepted? Thanks. -- Antonin _______________________________________________ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public