#4327 Added unconditional definitions of _FILE_STAT_BASIC_INFORMATION and _FILE_INFO_BY_NAME_CLASS to winapi.h. However, the windows 24H2 SDK also added these definitions. These causes duplicate struct definitions when compiling libuv.
In the Windows SDK headers, both of these APIs are surrounded by
#if (NTDDI_VERSION >= NTDDI_WIN11_ZN)
That means that libuv can solve this by wrapping those 2 definitions in winapi.h with
#if (NTDDI_VERSION < 0x0A00000E)
0x0A00000E is the definition of NTDDI_WIN11_ZN, which wouldn't be available in older SDKs.
#4327 Added unconditional definitions of
_FILE_STAT_BASIC_INFORMATIONand_FILE_INFO_BY_NAME_CLASSto winapi.h. However, the windows 24H2 SDK also added these definitions. These causes duplicate struct definitions when compiling libuv.In the Windows SDK headers, both of these APIs are surrounded by
#if (NTDDI_VERSION >= NTDDI_WIN11_ZN)That means that libuv can solve this by wrapping those 2 definitions in winapi.h with
#if (NTDDI_VERSION < 0x0A00000E)0x0A00000E is the definition of
NTDDI_WIN11_ZN, which wouldn't be available in older SDKs.