在 2026-2-20 09:18, David Grayson 写道:
(I'm about to submit another patch which adds this one to intsafe.h and I want that definition to be correct and I don't want the two definitions in this project to be inconsistent.)From 06c78cd5d86f193f5b3a7e07cbda2b45d9b1fb99 Mon Sep 17 00:00:00 2001 From: David Grayson <[email protected]> Date: Thu, 19 Feb 2026 17:06:31 -0800 Subject: [PATCH 1/2] headers/cfgmgr32: Fix the type of DWORD_MAX to be a DWORD. Signed-off-by: David Grayson <[email protected]> --- mingw-w64-headers/include/cfgmgr32.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mingw-w64-headers/include/cfgmgr32.h b/mingw-w64-headers/include/cfgmgr32.h index b1910e11e..47e33e994 100644 --- a/mingw-w64-headers/include/cfgmgr32.h +++ b/mingw-w64-headers/include/cfgmgr32.h @@ -37,7 +37,7 @@ extern "C" { #define MAX_IRQS 7 #define MAX_DMA_CHANNELS 7 -#define DWORD_MAX 0xFFFFFFFF +#define DWORD_MAX 0xFFFFFFFFUL #define DWORDLONG_MAX 0xFFFFFFFFFFFFFFFF
This has to be `__MSABI_LONG(0xFFFFFFFFU)`; otherwise on Cygwin or MSYS2 it would be 64-bit `unsigned long`. -- Best regards, LIU Hao
OpenPGP_signature.asc
Description: OpenPGP digital signature
_______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
