On Tuesday 27 October 2026 23:14:03 LIU Hao wrote:
> 在 2026-10-7 20:19, Pali Rohár 写道:
> > Hello, I read existing mentioned C11 thrd implementations on github,
> > used them as inspiration and I tried to prepare thrd_* functions for
> > mingw-w64 to be compatible with MSVC ABI. So not the whole C11
> > threads.h, just only thrd_* functions.
> > 
> > In the attachment mingw_c11_threads_2.patches are changes which
> > implements them and one of the sigfpe test which verifies that basic
> > functionality with C signal handlers is working.
> > 
> > Changes are applied on top of the changes from previous email
> > (mingw_c11_threads.patches) where is the threads.h and
> > vcruntime140_threads implementation.
> > 
> > What do you think about it?
> 
> Would you please hard-wrap those long lines? I don't have a favor on that;
> you may break it at 100 or 130 columns whatever you like, but 160 columns is
> really too long.

Ok. I will rewrap future changes. Mostly I'm wrapping comments around 80
chars per line, but sometimes I forget about it.

But I'm not sure if wrapping is possible for Makefile when specifying
those dependences on line.

> 
> > diff --git a/mingw-w64-crt/Makefile.am b/mingw-w64-crt/Makefile.am
> > index c9aedafa9b2f..93b420e6301b 100644
> > --- a/mingw-w64-crt/Makefile.am
> > +++ b/mingw-w64-crt/Makefile.am
> > @@ -1681,6 +1693,9 @@ include lib32/Makefile.am
> >  if !W32API
> >  lib32_DATA += lib32/libglut.a lib32/libmsvcp60.a lib32/libmsvcp120_app.a
> > +noinst_LIBRARIES += lib32/libc11_threads.a
> > +lib32_libc11_threads_a_SOURCES = $(src_c11_threads)
> > +
> 
> This requires a `_CPPFLAGS` variable; otherwise it would use the global 
> `CPPFLAGS` in a multilib build.
> 
> And likely elsewhere.

Ok, I will add this to my local changes for future.


_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to