(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

 #define CONFIGMG_VERSION 0x0400
--
2.52.0
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
 
 #define CONFIGMG_VERSION 0x0400
-- 
2.52.0

_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to