Skip to content

RGFW does not compile under Windows with Clang due to RegGetValueW #471

@mpalomas

Description

@mpalomas

RGFW does not compile under Windows with Clang 21 due to your usage of RegGetValueW, which, as stated in the official doc here, in the Remarks section, requires _WIN32_WINNT to be set to 0x0600 (Windows Vista I think?).

Maybe you should guard it with #if(_WIN32_WINNT >= 0x0600) like you do in other places?

This seems to be specific to Clang btw. When using MSVC, it seems the _WIN32_WINNT is automatically set to a recent version, not sure, but I did not set if myself and it compiles properly. But using Clang, it fails compiling on RegGetValueW.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions