Re: [Mingw-w64-public] [PATCH] adsiid constants

2021-05-10 Thread Liu Hao
); Other sources suggest 0x9A52DB30,0x1ECF,0x11CF,0xA9,0x88,0x00,0xAA,0x00,0x6B,0xC1,0x49 ^ (Also note it was a duplicate of the preceding line in your patch.) -- Best regards, Liu Hao OpenPGP_signature Description: OpenPGP digital signature

Re: [Mingw-w64-public] MINGW trademark claims

2021-05-10 Thread Liu Hao
eep up the good work and don't be confused by trolls, Thanks for your generosity! -- Best regards, Liu Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64-public@lists.source

Re: [Mingw-w64-public] undefined reference to __udivmoddi4 with GCC 11.1.0

2021-05-07 Thread Liu Hao
在 5/7/21 3:49 AM, Jonas Kvinge 写道: Thanks, the patch works. Nice. Pushed now. -- Best regards, Liu Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https

Re: [Mingw-w64-public] undefined reference to __udivmoddi4 with GCC 11.1.0

2021-05-06 Thread Liu Hao
uld effect an unresolvable circular dependency. x86 doesn't have hardware 64-bit division, which is conventionally provided by libgcc. As we can't link against libgcc, such routines have to be implemented in winpthreads itself. This is an unfortunate whack-a-mole game. -- Best rega

Re: [Mingw-w64-public] [PATCH] winpthreads: Increase precision of CLOCK_REALTIME, add CLOCK_REALTIME_COARSE.

2021-05-06 Thread Liu Hao
since 2018. Thanks. This patch looks good to me. I pushed it. -- Best regards, Liu Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/list

Re: [Mingw-w64-public] [PATCH] crt: Undefine `__rdtsc` for GCC 11

2021-05-06 Thread Liu Hao
在 2021-05-06 18:43, Martin Storsjö 写道: On Sat, 10 Apr 2021, Liu Hao wrote: Seems ok to me. Thanks. Pushed now. -- Best regards, Liu Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64

Re: [Mingw-w64-public] undefined reference to __udivmoddi4 with GCC 11.1.0

2021-05-05 Thread Liu Hao
aries/winpthreads/src/clock.c:122: undefined reference to `__udivmoddi4' Any idea how to fix it? Please test the attached patch. This quad division routine was named `__qdivrem()`. -- Best regards, Liu Hao From 5e1a4aa52dbc47091d394b67bde39c314389e1fa Mon Sep 17 00:00:00 2001 From: Liu

[Mingw-w64-public] [PATCH] winpthreads: Add `__udivmoddi4()`

2021-05-05 Thread Liu Hao
-- Best regards, Liu Hao From 5e1a4aa52dbc47091d394b67bde39c314389e1fa Mon Sep 17 00:00:00 2001 From: Liu Hao Date: Thu, 6 May 2021 10:33:48 +0800 Subject: [PATCH] winpthreads: Add `__udivmoddi4()` Like 431ac2a912708546cd7271332e9331399e66bc62 but this is for GCC 11. It is identical to

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

2021-05-05 Thread Liu Hao
| 1 + mingw-w64-headers/wine-import.sh | 1 + 2 files changed, 2 insertions(+) Thanks. This patch looks good to me. I pushed it. -- Best regards, Liu Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list

Re: [Mingw-w64-public] [PATCH] crt: Increase precision of gettimeofday() if possible.

2021-05-05 Thread Liu Hao
在 2021-05-04 23:50, Martin Storsjö 写道: On Tue, 4 May 2021, Liu Hao wrote: 在 2021-05-04 18:03, Christian Franke 写道: Next try attached. Thanks. This patch looks good to me. I may push this one if others don't have objections on it. That patch seems to work for me, thanks! Go

Re: [Mingw-w64-public] [PATCH] crt: Undefine `__rdtsc` for GCC 11

2021-05-05 Thread Liu Hao
在 2021-04-10 20:08, Liu Hao 写道: From f3e91c4d4fded83dfbced83a9449c5756d3448da Mon Sep 17 00:00:00 2001 From: Liu Hao Date: Sat, 10 Apr 2021 20:05:36 +0800 Subject: [PATCH] crt: Undefine `__rdtsc` for GCC 11 Signed-off-by: Liu Hao Ping? -- Best regards, Liu Hao OpenPGP_signature

Re: [Mingw-w64-public] [PATCH] crt: Increase precision of gettimeofday() if possible.

2021-05-04 Thread Liu Hao
s RAM) [1]. [1] https://stackoverflow.com/questions/27595595/when-are-x86-lfence-sfence-and-mfence-instructions-required -- Best regards, Liu Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mail

Re: [Mingw-w64-public] Setting Floating-Point Operation Precision Changes With Gcc 10.3

2021-05-04 Thread Liu Hao
mingw-w64/ci/295fafc? -- Best regards, Liu Hao OpenPGP_signature Description: OpenPGP digital signature ___ 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] crt: Increase precision of gettimeofday() if possible.

2021-05-03 Thread Liu Hao
that such races are harmless, but they are still undefined behavior, and could cause faults if thread sanitizer is involved. -- Best regards, Liu Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing l

Re: [Mingw-w64-public] [PATCH] crt: Increase precision of gettimeofday() if possible.

2021-05-03 Thread Liu Hao
en. [1] [1] https://gcc.godbolt.org/z/Kv3edeW1j -- Best regards, Liu Hao OpenPGP_signature Description: OpenPGP digital signature ___ 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] crt: Increase precision of gettimeofday() if possible.

2021-05-03 Thread Liu Hao
meAsFileTime_p, get_time, __ATOMIC_RELAXED); } ``` which is semantically correct, and doesn't introduce any overhead. This works since GCC 7. (If `get_time` pointed to mutable memory, instead of a pair of `__ATOMIC_RELAXED`, `__ATOMIC_CONSUME` and `__ATOMIC_RELEASE` would have to be used instead.)

Re: [Mingw-w64-public] [PATCH] crt: Fix the parameter type for UCRT _crt_atexit

2021-05-03 Thread Liu Hao
-headers/crt/corecrt_startup.h | 2 ++ 2 files changed, 4 insertions(+), 3 deletions(-) This patch looks good to me. -- Best regards, Liu Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64-public

Re: [Mingw-w64-public] [PATCH] crt: Increase precision of gettimeofday() if possible.

2021-05-03 Thread Liu Hao
precision. Oh fair enough, if you would like it, I don't mind applying it either. -- Best regards, Liu Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64-public@lists.source

Re: [Mingw-w64-public] [PATCH] crt: Increase precision of gettimeofday() if possible.

2021-05-02 Thread Liu Hao
mps at all. Yes, you are right, and should one prefer `system_clock`, `steady_clock` or `high_resolution_clock` under such circumstances? Why not call `GetSystemTimePreciseAsFileTime()` directly? -- Best regards, Liu Hao OpenPGP_signature Description:

Re: [Mingw-w64-public] [PATCH] headers: Add missing names in shlwapi.h

2021-05-02 Thread Liu Hao
/shlwapi.h | 32 - 1 file changed, 27 insertions(+), 5 deletions(-) Thanks. This patch looks good to me. Pushed. -- Best regards, Liu Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing

Re: [Mingw-w64-public] Add missing function declarations to mingw-w64-headers/include/shlwapi.h

2021-05-02 Thread Liu Hao
在 2021-05-02 17:58, DAVID MAY 写道: On 2/05/2021 1:28 pm, Liu Hao wrote: Please use `WINBOOL` instead of `BOOL` as the latter is a builtin type on Mac. There are more `BOOL`s in the original file, they should be replaced as well. See attached patch with changes you requested. Thanks for

Re: [Mingw-w64-public] Add missing function declarations to mingw-w64-headers/include/shlwapi.h

2021-05-01 Thread Liu Hao
more `BOOL`s in the original file, they should be replaced as well. -- Best regards, Liu Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https

Re: [Mingw-w64-public] [PATCH] crt: Increase precision of gettimeofday() if possible.

2021-05-01 Thread Liu Hao
calls `QueryPerformanceCounter()` for `high_resolution_clock`. -- Best regards, Liu Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Re: [Mingw-w64-public] Question: Should not the UCRT _iobuf condition be in every declaration?

2021-05-01 Thread Liu Hao
``` typedef struct _iobuf FILE; ``` probably just works, and doesn't cause errors if the same declaration is enocuntered multiple times. -- Best regards, Liu Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing

Re: [Mingw-w64-public] [PATCH] headers: Add coclasses in rdpencomapi.idl

2021-04-28 Thread Liu Hao
pushed. Thanks! -- Best regards, Liu Hao OpenPGP_signature Description: OpenPGP digital signature ___ 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/sec_api: Add strnlen_s definition.

2021-04-28 Thread Liu Hao
master. -- Best regards, Liu Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Re: [Mingw-w64-public] Add missing function declarations to mingw-w64-headers/include/shlwapi.h

2021-04-28 Thread Liu Hao
: ``` #ifndef SOME_MACRO #define SOME_MACRO 1 #endif ``` And please submit an isolated and atomic patch - not one that changes `#ifndef` to `#if !defined`, and adds other stuff at the same time. If it is really necessary for you, please send a distinct patch. -- Best regards, Liu Hao

Re: [Mingw-w64-public] [PATCH] crt: Increase precision of gettimeofday() if possible.

2021-04-28 Thread Liu Hao
tdc++ implementation should be considered faulty. I suggest people avoid its use. -- Best regards, Liu Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.

Re: [Mingw-w64-public] [PATCH] headers: Add missing names in ntsecapi.h

2021-04-27 Thread Liu Hao
matches Windows SDK. Hence I think it is barely acceptable. -- Best regards, Liu Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists

Re: [Mingw-w64-public] [PATCH] headers: Add missing values in winerror.h

2021-04-26 Thread Liu Hao
, Liu Hao OpenPGP_signature Description: OpenPGP digital signature ___ 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] crt/stdlib: Add `quick_exit()` and `at_quick_exit()` for UCRT

2021-04-26 Thread Liu Hao
//gcc-mcf.lhmouse.com/ -- Best regards, Liu Hao OpenPGP_signature Description: OpenPGP digital signature ___ 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] crt: Increase precision of gettimeofday() if possible.

2021-04-26 Thread Liu Hao
: GetSystemTimePreciseAsFileTime(): 23ns GetSystemTimeAsFileTime(): <3ns I don't think the complexity is worth. If users want precision they should use a monotonic clock such as `QueryPerformanceCounter()`. I can't think of any real usage of `gettimeofday()` which needs accurate results. -- Best

Re: [Mingw-w64-public] [PATCH] crt: Implement `at_quick_exit()`

2021-04-26 Thread Liu Hao
any sense for a DLL to call the latter? Probably, but only for DLLs that are residential until a process terminates. I think it's of course worth something. -- Best regards, Liu Hao OpenPGP_signature Description: OpenPGP digital signature

Re: [Mingw-w64-public] [PATCH] crt/stdlib: Add `quick_exit()` and `at_quick_exit()` for UCRT

2021-04-25 Thread Liu Hao
() { ::std::quick_exit(0); } ``` -- Best regards, Liu Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

[Mingw-w64-public] [PATCH] crt: Implement `at_quick_exit()`

2021-04-25 Thread Liu Hao
-- Best regards, Liu Hao From 895f17608aab6d04bb0254ab58ad2bbe98ecc8fe Mon Sep 17 00:00:00 2001 From: Liu Hao Date: Sun, 25 Apr 2021 00:20:47 +0800 Subject: [PATCH] crt: Implement `at_quick_exit()` `at_quick_exit()` was added in 7dda261ef062073eed4ed5b46effa3edd4a658fc. However it is not

Re: [Mingw-w64-public] [PATCH] crt: Make the scanf/sscanf/fscanf/vscanf/vsscanf/vfscanf functions extern with UCRT

2021-04-22 Thread Liu Hao
functions aren't worth the efforts. This patch looks good to me. -- Best regards, Liu Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.source

Re: [Mingw-w64-public] [PATCH] crt/stdlib: Add `quick_exit()` and `at_quick_exit()` for UCRT

2021-04-22 Thread Liu Hao
在 4/22/21 3:58 PM, Martin Storsjö 写道: On Thu, 22 Apr 2021, Liu Hao wrote: Looks ok to me, thanks! Thanks. Pushed now. -- Best regards, Liu Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list

[Mingw-w64-public] [PATCH] crt/stdlib: Add `quick_exit()` and `at_quick_exit()` for UCRT

2021-04-21 Thread Liu Hao
-- Best regards, Liu Hao From 7dda261ef062073eed4ed5b46effa3edd4a658fc Mon Sep 17 00:00:00 2001 From: Liu Hao Date: Thu, 22 Apr 2021 11:36:51 +0800 Subject: [PATCH] crt/stdlib: Add `quick_exit()` and `at_quick_exit()` for UCRT Signed-off-by: Liu Hao --- mingw-w64-headers/crt/stdlib.h | 6

Re: [Mingw-w64-public] [PATCH] crt: Make the scanf/sscanf/fscanf/vscanf/vsscanf/vfscanf functions extern with UCRT

2021-04-21 Thread Liu Hao
在 4/22/21 4:58 AM, Martin Storsjö 写道: This allows configure checks that don't include headers to detect them. Signed-off-by: Martin Storsjö --- umm, is it possible to keep those inline definitions? -- Best regards, Liu Hao OpenPGP_signature Description: OpenPGP digital sign

Re: [Mingw-w64-public] [PATCH] crt/{stdio, conio, wchar}: Move attributes before function declarators

2021-04-21 Thread Liu Hao
在 4/22/21 4:12 AM, Martin Storsjö 写道: On Sun, 18 Apr 2021, Liu Hao wrote: LGTM, thanks! Thanks. Pushed now. -- Best regards, Liu Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64

[Mingw-w64-public] [PATCH] crt/{stdio, conio, wchar}: Move attributes before function declarators

2021-04-18 Thread Liu Hao
-- Best regards, Liu Hao From 1c8801fc3ffe0723c2203d87d5d5c42dc25d64d1 Mon Sep 17 00:00:00 2001 From: Liu Hao Date: Sun, 18 Apr 2021 21:29:31 +0800 Subject: [PATCH] crt/{stdio,conio,wchar}: Move attributes before function declarators The preferred order of declaring a function is

Re: [Mingw-w64-public] [PATCH] headers: Add spellcheck.idl.

2021-04-18 Thread Liu Hao
100644 mingw-w64-headers/include/spellcheck.idl Thanks for the patch. I have pushed it to master. -- Best regards, Liu Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64-public

Re: [Mingw-w64-public] [PATCH] Core Audio Constants

2021-04-18 Thread Liu Hao
在 2021-04-18 15:31, JonY via Mingw-w64-public 写道: +#define SPATIAL_AUDIO_POSITION_BYTE_COUNT sizeof(float) * 3 This had better be wrapped in parentheses like `(sizeof(float) * 3)`. The others look good to me. -- Best regards, Liu Hao OpenPGP_signature Description: OpenPGP digital

Re: [Mingw-w64-public] Hello, some of you might know Ray Donnelly. I have sad news about him. He still fights the cancer, but it seems he has lost the fight. So he stays right now in this hospice. Ma

2021-04-17 Thread Liu Hao
在 17/04/2021 14.35, Kai Tietz via Mingw-w64-public 写道: GoFundMe zu unterstützen: https://gofund.me/83986499. I donated 100 GBP. He has been an important partner of us. His brilliance will never be forgotten. -- Best regards, Liu Hao OpenPGP_signature Description: OpenPGP digital

Re: [Mingw-w64-public] Autoconf fails to check scanf APIs in UCRT

2021-04-12 Thread Liu Hao
✓ * ucrt ✕ It looks like `{s,f,}scanf` functions have to be implemented out of line too, as done in 5f9f320f84c8d07d7e7c6db9af43e5cbe22b119b. -- Best regards, Liu Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public

[Mingw-w64-public] [PATCH] crt: Undefine `__rdtsc` for GCC 11

2021-04-10 Thread Liu Hao
-- Best regards, Liu Hao From f3e91c4d4fded83dfbced83a9449c5756d3448da Mon Sep 17 00:00:00 2001 From: Liu Hao Date: Sat, 10 Apr 2021 20:05:36 +0800 Subject: [PATCH] crt: Undefine `__rdtsc` for GCC 11 Signed-off-by: Liu Hao --- mingw-w64-crt/intrincs/rdtsc.c | 3 +++ 1 file changed, 3

Re: [Mingw-w64-public] [PATCH] headers: Hide the contents of struct _iobuf in UCRT mode

2021-04-08 Thread Liu Hao
comment on that line, and if MSVC was used to compile that file (with UCRT), the same error will occur. It's probably better to add `#elif defined _UCRT` above that line, and define a private `struct __crt_stdio_stream_data` there. -- Best regards, Liu Hao OpenPGP_signature Description:

Re: [Mingw-w64-public] [PATCH] include/stralign: Canonicalize macros for x86-64

2021-04-08 Thread Liu Hao
在 2021-04-08 13:53, Martin Storsjö 写道: On Thu, 8 Apr 2021, Liu Hao wrote: LGTM too, thanks! Thanks. Pushed now. -- Best regards, Liu Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64

[Mingw-w64-public] [PATCH] include/stralign: Canonicalize macros for x86-64

2021-04-07 Thread Liu Hao
-- Best regards, Liu Hao From 0936c4ded2d1830a5324e3b90d046bf053af311e Mon Sep 17 00:00:00 2001 From: Liu Hao Date: Thu, 8 Apr 2021 10:11:37 +0800 Subject: [PATCH] include/stralign: Canonicalize macros for x86-64 We check for `__x86_64__` instead of `__amd64__` in other places. Signed-off-by

Re: [Mingw-w64-public] [PATCH] include/crt: Use GCC predefined macros instead of MSVC-ish ones

2021-04-07 Thread Liu Hao
looks like <_mingw_mac.h> references many without trailing underscores. `__arm__` and `__aarvh64__` are only available with trailing underscores so there is no choice. -- Best regards, Liu Hao OpenPGP_signature Description: OpenPGP digital sig

[Mingw-w64-public] [PATCH v2] include/crt: Use GCC predefined macros instead of MSVC-ish ones

2021-04-07 Thread Liu Hao
-- Best regards, Liu Hao From e2c5baf4066d5343325ff582b6d8474a55f369dc Mon Sep 17 00:00:00 2001 From: Liu Hao Date: Wed, 7 Apr 2021 23:24:47 +0800 Subject: [PATCH] include/crt: Use GCC predefined macros instead of MSVC-ish ones Reference: https://github.com/gcc-mirror/gcc/blob

[Mingw-w64-public] [PATCH] include/crt: Use GCC predefined macros instead of MSVC-ish ones

2021-04-07 Thread Liu Hao
nclude/ddk/ntddk.h * ddk/include/ddk/ntifs.h * ddk/include/ddk/srb.h * ddk/include/ddk/wdm.h * include/esent.h * include/ntdef.h -- Best regards, Liu Hao From af45a566ff80853e8184506db8e67b6de79dbac4 Mon Sep 17 00:00:00 2001 From: Liu Hao Date: Wed, 7 Apr 2021 23:24:47 +0800 Subje

Re: [Mingw-w64-public] [PATCH] include/float: Only hide non-reserved identifiers in strict, conformance mode

2021-04-07 Thread Liu Hao
在 2021/4/7 下午1:55, Martin Storsjö 写道: A new patch for changing that sounds good to me. And this patch looks good to me. Thanks. I pushed this one. Perhaps I can propose the other one later. -- Best regards, Liu Hao OpenPGP_signature Description: OpenPGP digital signature

Re: [Mingw-w64-public] [PATCH] include/float: Only hide non-reserved identifiers in strict, conformance mode

2021-04-06 Thread Liu Hao
them somewhere the header hasn't been included. I agree on that. Should those existing VC macros be changed to GCC ones? It probably requires a new patch. -- Best regards, Liu Hao OpenPGP_signature Description: OpenPGP digital sign

Re: [Mingw-w64-public] [PATCH] crt: Add symbols for POSIX time functions and find{first, next} functions

2021-04-06 Thread Liu Hao
is word doesn't appear in the commit message. The patch LGTM, thanks! I happened to find two missed hunksfor 'api-ms-win-crt-filesystem-l1-1-0.def' in the second patch. I fixed them and pushed. Thanks. -- Best regards, Liu Hao OpenPGP_sig

Re: [Mingw-w64-public] [PATCH] include/float: Only hide non-reserved identifiers in strict, conformance mode

2021-04-06 Thread Liu Hao
在 2021-04-01 22:33, Liu Hao 写道: 在 2021-04-01 22:09, Biswapriyo Nath 写道: * Another query, why does this header use _M_IX86 like manifest constants? I thought those are only for MSVC and we uses __i686__ instead. I think those should be changed to GCC ones, too. Just checked. Those MSVC

Re: [Mingw-w64-public] [PATCH] crt: Add symbols for POSIX time functions and find{first, next} functions

2021-04-06 Thread Liu Hao
在 2021-03-31 21:45, Liu Hao 写道: Side note: This patch is not meant to address the issue about default size of `time_t`, due to possibility of ABI break. And here is the second patch that makes `time_t` unconditionally 64-bit for UCRT. -- Best regards, Liu Hao From

Re: [Mingw-w64-public] crt/_mingw.h.in: Extend `time_t` to 64 bits for UCRT for 32-bit targets

2021-04-06 Thread Liu Hao
-- Best regards, Liu Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

[Mingw-w64-public] crt/_mingw.h.in: Extend `time_t` to 64 bits for UCRT for 32-bit targets

2021-04-05 Thread Liu Hao
-- Best regards, Liu Hao From 0a4792158eef8c25a8feb7544115116023ee2ab1 Mon Sep 17 00:00:00 2001 From: Liu Hao Date: Mon, 5 Apr 2021 18:18:54 +0800 Subject: [PATCH] crt/_mingw.h.in: Extend `time_t` to 64 bits for UCRT for 32-bit targets Signed-off-by: Liu Hao --- mingw-w64-headers/crt

Re: [Mingw-w64-public] [PATCH 2/2] crt: Generate libfeclient.a for x86.

2021-04-03 Thread Liu Hao
omake, etc. installed, because those generated files are mostly plain shell scripts. -- Best regards, Liu Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge

Re: [Mingw-w64-public] [PATCH 2/2] crt: Generate libfeclient.a for x86.

2021-04-03 Thread Liu Hao
100644 mingw-w64-crt/lib32/feclient.def Please don't include auto-generated files (Makefile.in) next time. I removed this hunk and pushed these patches. Thanks. -- Best regards, Liu Hao OpenPGP_signature Description: OpenPGP digital sign

Re: [Mingw-w64-public] [PATCH] include/float: Only hide non-reserved identifiers in strict, conformance mode

2021-04-01 Thread Liu Hao
? I thought those are only for MSVC and we uses __i686__ instead. I think those should be changed to GCC ones, too. -- Best regards, Liu Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64

[Mingw-w64-public] [PATCH] include/float: Only hide non-reserved identifiers in strict, conformance mode

2021-04-01 Thread Liu Hao
-- Best regards, Liu Hao From a74d1971b7b9114dc0e9ecf625eab96aec3b4b1f Mon Sep 17 00:00:00 2001 From: Liu Hao Date: Thu, 1 Apr 2021 14:45:47 +0800 Subject: [PATCH] include/float: Only hide non-reserved identifiers in strict conformance mode Identifiers that start with an underscore followed

[Mingw-w64-public] [PATCH] crt: Add symbols for POSIX time functions and find{first, next} functions

2021-03-31 Thread Liu Hao
Side note: This patch is not meant to address the issue about default size of `time_t`, due to possibility of ABI break. -- Best regards, Liu Hao From 6ffd67853efba37f7bdd1664e99dd26d3a6da5c1 Mon Sep 17 00:00:00 2001 From: Liu Hao Date: Tue, 30 Mar 2021 22:19:33 +0800 Subject: [PATCH] crt

Re: [Mingw-w64-public] [PATCH] crt: Add symbols for POSIX time functions

2021-03-31 Thread Liu Hao
e commands in 'VS2013 x86 Native Tools Command Prompt': * * cl test.c && test.exe * cl /D_USE_32BIT_TIME_T test.c && test.exe **/ #include #include int main(void) { printf("sizeof(time_t) = %d\n", (int)sizeof(time_t)); } ``` -- Best regar

Re: [Mingw-w64-public] [PATCH] crt: Add symbols for POSIX time functions

2021-03-30 Thread Liu Hao
在 2021/3/30 下午11:26, Martin Storsjö 写道: On Tue, 30 Mar 2021, Liu Hao wrote: The patch looks sensible to me (and good that you added a comment!). For 32 bit mode, I'd say default to whatever the headers default to. However, please add the corresponding aliases to api-ms-win-crt*.def too

[Mingw-w64-public] [PATCH] crt: Add symbols for POSIX time functions

2021-03-30 Thread Liu Hao
32-bit DLL, and 64-bit variants for the 64-bit DLL. However I am not sure whether this is desirable: They may also defined as (default) unconditional aliases for 64-bit variants. -- Best regards, Liu Hao From e4c11c6213ab60b73cf0f2bbd69697520631159f Mon Sep 17 00:00:00 2001 From: Liu Hao Date: T

Re: [Mingw-w64-public] [PATCH] headers: Add missing function declarations in stdlib_s.h.

2021-03-30 Thread Liu Hao
. -- Best regards, Liu Hao OpenPGP_signature Description: OpenPGP digital signature ___ 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: Update the layout of struct _iobuf to match the layout used in UCRT

2021-03-28 Thread Liu Hao
AL_SECTION` fiend is still missing, unless we include in , which I think is bad. -- Best regards, Liu Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge

Re: [Mingw-w64-public] [PATCH] headers: Hide the contents of struct _iobuf in UCRT mode

2021-03-26 Thread Liu Hao
concluded. -- Best regards, Liu Hao OpenPGP_signature Description: OpenPGP digital signature ___ 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: Update the layout of struct _iobuf to match the layout used in UCRT

2021-03-26 Thread Liu Hao
there was code that used those fields, probably; but I am pretty sure there will be [1], because he did the same to Glibc's `FILE` struct. [1] https://github.com/expnkx/fast_io -- Best regards, Liu Hao OpenPGP_signature Description: OpenP

Re: [Mingw-w64-public] [PATCH] headers: Update the layout of struct _iobuf to match the layout used in UCRT

2021-03-26 Thread Liu Hao
to the plural form `_flags`. How about updating them as well? -- Best regards, Liu Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net

Re: [Mingw-w64-public] [PATCH 2/2] headers: Add missing idl files in automake.

2021-03-19 Thread Liu Hao
在 2021-03-19 18:03, Biswapriyo Nath 写道: Subject: [PATCH 2/2] headers: Add missing idl files in automake. Signed-off-by: Biswapriyo Nath --- mingw-w64-headers/Makefile.am | 2 ++ 1 file changed, 2 insertions(+) These patches look good to me. Pushed. -- Best regards, Liu Hao

Re: [Mingw-w64-public] error: nested function '_ftime32' declared 'extern'

2021-03-18 Thread Liu Hao
something(void) { return 42; } | ^ ``` If you think there is a problem in MinGW.org headers, please file a bug report to them. This is the mingw-w64 list and we aren't responsible for MinGW.org issues. -- Best regards, Liu Hao OpenPGP_signature Description:

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

2021-03-18 Thread Liu Hao
在 2021/3/19 上午12:34, Biswapriyo Nath 写道: There was a mistake I have just discovered. There was a change in wine-import.sh which I did not meant to do. You may send a patch to revert that. -- Best regards, Liu Hao OpenPGP_signature Description: OpenPGP digital signature

Re: [Mingw-w64-public] [Feature?] Missing IDL interface declaration in mfidl.idl

2021-03-18 Thread Liu Hao
78dfeab/ -- Best regards, Liu Hao OpenPGP_signature Description: OpenPGP digital signature ___ 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: Add IMFGetService in mfidl.idl.

2021-03-18 Thread Liu Hao
在 2021-03-17 14:34, Biswapriyo Nath 写道: It is easier to add IMFGetService than importing whole idl file from wine as diff is hugely entangled. Thanks. This patch looks good to me. Pushed. -- Best regards, Liu Hao OpenPGP_signature Description: OpenPGP digital signature

Re: [Mingw-w64-public] error: nested function '_ftime32' declared 'extern'

2021-03-18 Thread Liu Hao
RSION_MAJOR 9 #define __MINGW64_VERSION_MINOR 0 #define __MINGW64_VERSION_BUGFIX 0 in <_mingw_mac.h> on your machine (the above are definitions for mingw-w64 v9.0.0). I can't give any constructive suggestions otherwise. -- Best regards, Liu Hao OpenPGP_signature De

Re: [Mingw-w64-public] [PATCH] headers: Import wmprealestate.idl and wmpservices.idl from Wine.

2021-03-14 Thread Liu Hao
changed, 7 insertions(+) Please don't include 'Makefile.in' next time. It is automatically generated. I removed it and pushed this one. -- Best regards, Liu Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64

Re: [Mingw-w64-public] [PATCH] headers: Replace BOOL with WINBOOL in dinput.h.

2021-03-14 Thread Liu Hao
. Pushed. -- Best regards, Liu Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Re: [Mingw-w64-public] Missing *NoFence() Win SDK Interlocked atomic functions

2021-03-11 Thread Liu Hao
k with the full list: This looks like an oversight (and not only those `NoFence` variants, but those `Acquire` and `Release` are missing too). Patches are welcome. Ideally those should be declared in and implemented in . There are too many of them. -- Best regards, Liu Hao OpenPGP

Re: [Mingw-w64-public] gcc x86_64-w64-mingw32 parses filenames mentioned on command line differently from filenames mentioned in @response files

2021-03-09 Thread Liu Hao
a path argument such as `/c/windows`, you will get different outputs. -- Best regards, Liu Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.

Re: [Mingw-w64-public] [Missing API] C++ variants of wcstombs_s not present in stdlib_s.h

2021-03-07 Thread Liu Hao
在 2021-03-07 16:39, scr3a...@auresium.com 写道: Here is a patch implementing the C++ safe versions of wcstombs_s and _wcstombs_s_l. Thanks. This patch looks good to me. Pushed. -- Best regards, Liu Hao OpenPGP_signature Description: OpenPGP digital signature

Re: [Mingw-w64-public] [Win32 API Signature Change] Discrepancy in API signature for SymLoadModule64

2021-03-05 Thread Liu Hao
. -- Best regards, Liu Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Re: [Mingw-w64-public] [Missing API] C++ variants of wcstombs_s not present in stdlib_s.h

2021-03-05 Thread Liu Hao
wait for me for a few days). -- Best regards, Liu Hao OpenPGP_signature Description: OpenPGP digital signature ___ 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: Add missing names in sspi.h.

2021-03-04 Thread Liu Hao
在 2021-03-04 23:08, Biswapriyo Nath 写道: Patch update #1. Thanks for the update. I pushed this one. -- Best regards, Liu Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64-public

Re: [Mingw-w64-public] [PATCH] headers: Add missing names in sspi.h.

2021-03-04 Thread Liu Hao
在 2021/3/3 上午4:11, Biswapriyo Nath 写道: + typedef struct _SecPkgContext_Bindings { +unsigned long BindingsLength; Shouldn't this be `unsigned __LONG32` as well? -- Best regards, Liu Hao OpenPGP_signature Description: OpenPGP digital sign

Re: [Mingw-w64-public] [PATCH] headers/crt: Remove builtin crc32 function declaration.

2021-03-04 Thread Liu Hao
file changed, 3 deletions(-) Thanks. This patch looks good to me. Pushed. -- Best regards, Liu Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https

Re: [Mingw-w64-public] g++ shows redundant __builtin declarations in intrin.h

2021-03-03 Thread Liu Hao
在 2021/3/2 下午10:21, Liu Hao 写道: 在 2021-03-02 17:49, Biswapriyo Nath 写道: * Command: echo "#include " | g++ -c -Wredundant-decls -xc++ - * Output: intrin.h:59:23: note: previous declaration of 'unsigned int __builtin_ia32_crc32qi(unsigned int, unsigned char)' * Test project

Re: [Mingw-w64-public] [PATCH v2] headers: Expose SCN*8 defines when using UCRT

2021-03-02 Thread Liu Hao
regards, Liu Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Re: [Mingw-w64-public] g++ shows redundant __builtin declarations in intrin.h

2021-03-02 Thread Liu Hao
s2.git They were introduced by 7ae84a6139579752bf678c070763c01b673b4120, but attempting to call those functions without `-mcrc32` results in undefined references. They seem unused and may be safely removed. -- Best regards, Liu Hao OpenPGP_signature Description: OpenP

Re: [Mingw-w64-public] [PATCH] headers: Expose SCN*8 defines when using UCRT

2021-03-02 Thread Liu Hao
spite `-std=c89`. 2) Old MSVCR* DLLs never support them despite `-std=c99`. -- Best regards, Liu Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforg

Re: [Mingw-w64-public] [PATCH] headers: Add SCN*8 to inttypes.h

2021-03-02 Thread Liu Hao
checked Visual Studio 2013 and neither `printf()` nor `scanf()` supports the `hh` length modifier. Probably only UCRT supports them. -- Best regards, Liu Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list

Re: [Mingw-w64-public] [PATCH] headers: Fix the signature of wcstok() for UCRT

2021-03-02 Thread Liu Hao
, too. -- Best regards, Liu Hao OpenPGP_signature Description: OpenPGP digital signature ___ 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] crt: Silence warnings when building _*wc_nolock

2021-03-02 Thread Liu Hao
| 2 ++ mingw-w64-crt/stdio/_putwc_nolock.c | 2 ++ 2 files changed, 4 insertions(+) This patch looks good to me. -- Best regards, Liu Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64

Re: [Mingw-w64-public] [PATCH] headers: Add missing names in winbase.h.

2021-03-01 Thread Liu Hao
/winbase.h | 237 +--- 1 file changed, 219 insertions(+), 18 deletions(-) Thanks. This patch looks good to me. Pushed to master. -- Best regards, Liu Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64

Re: [Mingw-w64-public] _XCR_XFEATURE_ENABLED_MASK is not defined

2021-02-25 Thread Liu Hao
control. -- Best regards, Liu Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Re: [Mingw-w64-public] windows.h brings along SSE intrinsics

2021-02-24 Thread Liu Hao
mes) so most of them are implemented in and . -- Best regards, Liu Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Re: [Mingw-w64-public] timespec_get

2021-02-21 Thread Liu Hao
在 2021/2/22 上午9:21, Liu Hao 写道: > 在 2021/2/22 上午6:25, Dmitry Kozlyuk 写道: >> timespec_get() is missing from MinGW-w64 despite it appeared even in C11. >> Implementation seems to be a few lines already present in gettimeofday(). >> Is it an oversight or it's int

Re: [Mingw-w64-public] timespec_get

2021-02-21 Thread Liu Hao
et(ts, TIME_UTC)` is equivalent to `clock_gettime(CLOCK_REALTIME, ts)`, which is implemented in winpthreads (and may require `-pthread`). It might have been left unimplemented because people wanted to use the POSIX one instead. -- Best regards, Liu Hao signature.asc Description: OpenP

<    5   6   7   8   9   10   11   12   13   14   >