On Wed, 8 Jan 2025, Jacek Caban wrote:

On 8.01.2025 14:22, Martin Storsjö wrote:
On Mon, 6 Jan 2025, Jacek Caban wrote:


From: Billy Laws <blaw...@gmail.com>

This structure is the same across every architecture that uses it, so
avoid needlessly duplicating its definition.

Signed-off-by: Jacek Caban <ja...@codeweavers.com>
---

With this series, platform headers are useful on arm64ec target.

mingw-w64-headers/include/winnt.h | 83 +++++++++----------------------
1 file changed, 24 insertions(+), 59 deletions(-)

This one looks ok, assuming that it's ok to change types between DWORD/ULONG, DWORD/DWORD64/ULONG64 etc. (I guess in theory, someone could have cases where they no longer match e.g. printf format specifiers.) This is assuming that these details match WinSDK to begin with though.


Those types use the same underlying type, so there should be no problem with printfs. DWORD, ULONG and ULONG_PTR are unsigned long on 32-bit, DWORD64, ULONG64 and ULONT_PTR are unsigned long long on 64-bit.

Ok, thanks for checking and confirming!

// Martin

_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to