Re: [Mingw-w64-public] [PATCH] headers: Enable __USE_MINGW_ACCESS implicitly when targeting UCRT

2021-10-27 Thread Martin Storsjö
On Wed, 27 Oct 2021, LIU Hao wrote: 在 2021-10-25 15:21, Martin Storsjö 写道: So if we want to override/redirect access() on UCRT, we need to replace the access() function altogether in the import library. How about defining `X_OK` as zero, so it should have no effect at all? This was eva

Re: [Mingw-w64-public] About -mthreads

2021-10-27 Thread LIU Hao
在 2021-10-23 22:50, Óscar Fuentes 写道: But, AFAIK, -mthreads is unnecesary nowadays and mingwthrd is just a stub. Is this correct? The comment in 'mingwthrd_mt.c' says so, but `-mthreads` also defines `-D_MT` which isn't otherwise defined. Some projects have it in their CMakeFiles.txt, however

Re: [Mingw-w64-public] [PATCH] headers: Enable __USE_MINGW_ACCESS implicitly when targeting UCRT

2021-10-27 Thread Liviu Ionescu
> On 27 Oct 2021, at 17:54, LIU Hao wrote: > > ... How about defining `X_OK` as zero, so it should have no effect at all? In the GCC & binutils code there are also calls to `access()` with other modes, like R_OK and possibly W_OK. I don't think that this is a good idea; the user code should

Re: [Mingw-w64-public] [PATCH] headers: Import wmsecure.idl from wine

2021-10-27 Thread Biswapriyo Nath
Missed the new patch to add it in makefile.am. Thus wmsecure.h is not generated. ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Re: [Mingw-w64-public] [PATCH] headers: Enable __USE_MINGW_ACCESS implicitly when targeting UCRT

2021-10-27 Thread LIU Hao
在 2021-10-25 15:21, Martin Storsjö 写道: So if we want to override/redirect access() on UCRT, we need to replace the access() function altogether in the import library. How about defining `X_OK` as zero, so it should have no effect at all? -- Best regards, LIU Hao OpenPGP_signature Desc

Re: [Mingw-w64-public] [PATCH] headers: Add some interfaces in mfidl.idl

2021-10-27 Thread LIU Hao
在 2021-10-21 23:38, Biswapriyo Nath 写道: 0001-headers-Add-some-interfaces-in-mfidl.idl.patch From 5109f7273105838fadf3af121bfb964dc0f8e1af Mon Sep 17 00:00:00 2001 From: Biswapriyo Nath Date: Thu, 21 Oct 2021 21:03:55 +0530 Subject: [PATCH] headers: Add some interfaces in mfidl.idl Signed-off-b

Re: [Mingw-w64-public] [PATCH] headers: Import wmsecure.idl from wine

2021-10-27 Thread LIU Hao
在 2021-10-21 23:38, Biswapriyo Nath 写道: From a82ed5bd10ced3aba842cf6ab6dd9baf5f70751b Mon Sep 17 00:00:00 2001 From: Biswapriyo Nath Date: Thu, 21 Oct 2021 21:04:54 +0530 Subject: [PATCH] headers: Import wmsecure.idl from wine Signed-off-by: Biswapriyo Nath --- mingw-w64-headers/wine-import.s

Re: [Mingw-w64-public] InterlockedCompareExchange128 intrinsic function

2021-10-27 Thread Biswapriyo Nath
I do not know if this will be appropriate in mingw-w64. mingw-w64 imports some header file from wine project for the widl tool. In the mingw-w64-tools/widl/include/winnt.h file[1], there is a definition of InterlockedCompareExchange128 function with inline assembly. Would you like to check if that