Skip to content

libuv cannot compile against the Windows 24H2 SDK #4575

@ThadHouse

Description

@ThadHouse

#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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions