The problem is that someone put all attributes after return value, but windows declspec must be in front of everything. Changing void * WINPTHREAD_API pthread_timechange_handler_np(void * dummy); to WINPTHREAD_API void * pthread_timechange_handler_np(void * dummy); fixes that declspec issue.
On Sat, 14 Mar 2020 at 22:53, Martin Storsjö <[email protected]> wrote: > > On Sat, 14 Mar 2020, Egor Pugin wrote: > > >> I don't agree with your conclusion that clang doesn't support > > __declspec in the configuration your describing. > > > > Maybe. > > With declspecs and current settings I see following: > > https://pastebin.com/L63Zj9Hn (errors) > > https://pastebin.com/KSDpSse5 (command line) > > Same with x86_64-pc-windows-msvc target. > > Well that error doesn't say it doesn't support __declspec, it mostly says > that some part of the quoting/expansion of __declspec via the macros ends > up broken. > > Can you try running the same command but with -E instead of -c, and quote > the relevant bits from the output from around where WINPTHREAD_API is > used? > > // Martin > > > > _______________________________________________ > Mingw-w64-public mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/mingw-w64-public -- Egor Pugin _______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
