[Mingw-w64-public] [PATCH] headers: Define `__MINGW_ATTRIB_DEPRECATED_SEC_WARN` properly for C

2025-02-28 Thread LIU Hao
-- Best regards, LIU Hao From de035478a131fbbf3e31eaef018f7b0e732c73c2 Mon Sep 17 00:00:00 2001 From: LIU Hao Date: Sat, 1 Mar 2025 15:17:08 +0800 Subject: [PATCH] headers: Define `__MINGW_ATTRIB_DEPRECATED_SEC_WARN` properly for C When `__MINGW_MSVC_COMPAT_WARNINGS` is defined, the plain (no

Re: [Mingw-w64-public] _CRT_SECURE_NO_WARNINGS has no effect in C

2025-02-28 Thread LIU Hao
在 2025-02-20 18:06, Seth McDonald via Mingw-w64-public 写道: Warnings are only disabled if both _CRT_SECURE_NO_WARNINGS is defined and _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES is not 0. The _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES macro (when defined as 1) allows for MSVC-considered unsafe functions

Re: [Mingw-w64-public] [PATCH] Add missing comparison operators for Microsoft::WRL::ComPtr

2025-02-28 Thread LIU Hao
在 2025-02-28 02:35, Jøger Hansegård via Mingw-w64-public 写道: +template +bool operator!=(const ComPtr &a, const ComPtr &b) throw() +{ +static_assert(__is_base_of(T, U) || __is_base_of(U, T)); Static assertion without a message is a C++17 feature; this can cau

Re: [Mingw-w64-public] headers/winhvplatformdefs: Allow `WHV_SYNTHETIC_PROCESSOR_FEATURES::TbFlushHypercalls` for ARM64

2025-02-28 Thread Martin Storsjö
On Fri, 28 Feb 2025, LIU Hao wrote: Ok. // Martin ___ 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 3/3] crt: Remove unused FE_ROUNDING_MASK from pow.def.h.

2025-02-28 Thread Jacek Caban
On 28.02.2025 13:58, Martin Storsjö wrote: On Sat, 22 Feb 2025, Jacek Caban wrote: --- mingw-w64-crt/math/x86/pow.def.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/mingw-w64-crt/math/x86/pow.def.h b/mingw-w64-crt/math/x86/pow.def.h index 0cf0739fe..f8c715abd 100644 --- a/mingw-w64-cr

[Mingw-w64-public] [PATCH] headers: Remove trailing commas from enumerator lists and initializer lists

2025-02-28 Thread LIU Hao
Except the first hunk for wiadef.h, all changes seem to be enumerator lists, and none of these files seem to be generated, which can be examined with git show --color-words=. git log $(git show --numstat | grep -Eo 'include/.*$') -- Best regards, LIU Hao From 9132cf3c33d9b58c1abb41cae

Re: [Mingw-w64-public] headers/winhvplatformdefs: Allow `WHV_SYNTHETIC_PROCESSOR_FEATURES::TbFlushHypercalls` for ARM64

2025-02-28 Thread LIU Hao
在 2025-02-28 22:09, Martin Storsjö 写道: On Fri, 28 Feb 2025, LIU Hao wrote: Ok. Thanks. Pushed. -- Best regards, LIU Hao OpenPGP_signature.asc Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64-public@lists.so

[Mingw-w64-public] headers/winhvplatformdefs: Allow `WHV_SYNTHETIC_PROCESSOR_FEATURES::TbFlushHypercalls` for ARM64

2025-02-28 Thread LIU Hao
-- Best regards, LIU Hao From b96006586ea07492dbe51de232c1bb6e8115b112 Mon Sep 17 00:00:00 2001 From: LIU Hao Date: Fri, 28 Feb 2025 21:59:41 +0800 Subject: [PATCH] headers/winhvplatformdefs: Allow `WHV_SYNTHETIC_PROCESSOR_FEATURES::TbFlushHypercalls` for ARM64 Reference: https://github.com/

Re: [Mingw-w64-public] [PATCH v4] Update of Hyper-V APIs

2025-02-28 Thread LIU Hao
在 2025-02-28 20:45, Martin Storsjö 写道: On Tue, 18 Feb 2025, LIU Hao wrote: Rectify a few errors that were discovered by a token-wise diff. Changes between the previous series are in 'errata.diff'. Looks reasonable to me, thanks! (I haven't crosschecked the details myself, but the patches loo

Re: [Mingw-w64-public] [PATCH] headers: Remove trailing commas from enumerator lists

2025-02-28 Thread LIU Hao
在 2025-02-28 20:54, Martin Storsjö 写道: In general, I think this is safe - however, are some of these headers ones that are autogenerated from IDL sources? In that case, we should fix the IDL (and possibly the upstream version in Wine) first. In the following files, there seem to be changes tha

Re: [Mingw-w64-public] [PATCH 3/3] crt: Remove unused FE_ROUNDING_MASK from pow.def.h.

2025-02-28 Thread Martin Storsjö
On Sat, 22 Feb 2025, Jacek Caban wrote: --- mingw-w64-crt/math/x86/pow.def.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/mingw-w64-crt/math/x86/pow.def.h b/mingw-w64-crt/math/x86/pow.def.h index 0cf0739fe..f8c715abd 100644 --- a/mingw-w64-crt/math/x86/pow.def.h +++ b/mingw-w64-crt/math/

Re: [Mingw-w64-public] [PATCH 1/3] fenv.h: Use unsigned long for fexcept_t on all targets.

2025-02-28 Thread Martin Storsjö
On Sat, 22 Feb 2025, Jacek Caban wrote: This improves MSVC compatibility and unifies the code across different targets. --- mingw-w64-headers/crt/fenv.h | 13 +++-- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/mingw-w64-headers/crt/fenv.h b/mingw-w64-headers/crt/fenv.h i

Re: [Mingw-w64-public] [PATCH] headers: Remove trailing commas from enumerator lists

2025-02-28 Thread Martin Storsjö
On Sun, 16 Feb 2025, LIU Hao wrote: -- In general, I think this is safe - however, are some of these headers ones that are autogenerated from IDL sources? In that case, we should fix the IDL (and possibly the upstream version in Wine) first. In the following files, there seem to be change

Re: [Mingw-w64-public] [PATCH v4] Update of Hyper-V APIs

2025-02-28 Thread Martin Storsjö
On Tue, 18 Feb 2025, LIU Hao wrote: Rectify a few errors that were discovered by a token-wise diff. Changes between the previous series are in 'errata.diff'. Looks reasonable to me, thanks! (I haven't crosschecked the details myself, but the patches look reasonable, and iirc someone had test

Re: [Mingw-w64-public] [PATCH 11/15] crt: Remove usage of CRTDLL macro

2025-02-28 Thread Martin Storsjö
On Mon, 17 Feb 2025, Pali Rohár wrote: On Thursday 13 February 2025 19:51:12 Pali Rohár wrote: On Thursday 13 February 2025 14:26:30 Martin Storsjö wrote: On Fri, 7 Feb 2025, Pali Rohár wrote: This macro is used only on few places in .c files, not in .h files. So remove its usage and dead co

Re: [Mingw-w64-public] [PATCH 04/15] crt: Guard nested _CRT_INIT(DLL_PROCESS_DETACH) call for DLL builds

2025-02-28 Thread Martin Storsjö
On Mon, 17 Feb 2025, Pali Rohár wrote: On Monday 17 February 2025 13:13:29 Martin Storsjö wrote: On Thu, 13 Feb 2025, Pali Rohár wrote: On Thursday 13 February 2025 14:16:06 Martin Storsjö wrote: On Fri, 7 Feb 2025, Pali Rohár wrote: This will report runtime error if _CRT_INIT(DLL_PROCESS_