Windows 10 19H1 raised the number of available FLS slots
from 128 to 4080 [1] and the Windows SDK was updated
accordingly

[1] 
https://learn.microsoft.com/en-us/windows-insider/archive/new-in-19h1#fls-slot-limit-increase

Signed-off-by: Luca Bacci <[email protected]>
---
 mingw-w64-headers/include/winnt.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/mingw-w64-headers/include/winnt.h 
b/mingw-w64-headers/include/winnt.h
index 6120c929c..60c8f2370 100644
--- a/mingw-w64-headers/include/winnt.h
+++ b/mingw-w64-headers/include/winnt.h
@@ -4413,7 +4413,12 @@ typedef BYTE SE_SIGNING_LEVEL, *PSE_SIGNING_LEVEL;
       DWORD Flags;
     } JOB_SET_ARRAY,*PJOB_SET_ARRAY;
 
+#if _WIN32_WINNT >= _WIN32_WINNT_WIN10_19H1
+#define FLS_MAXIMUM_AVAILABLE 4080
+#else
 #define FLS_MAXIMUM_AVAILABLE 128
+#endif
+
 #define TLS_MINIMUM_AVAILABLE 64
 
 #ifndef __MINGW_EXCPT_DEFINE_PSDK
-- 
2.40.1



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

Reply via email to