Skip to content

Clang does not define __WCHAR_MIN__ predefined macro #199678

@alexrp

Description

@alexrp

This breaks riscv(32,64)-netbsd because its headers expect to be able to define WCHAR_MIN in terms of __WCHAR_MIN__:

https://github.com/NetBSD/src/blob/22482b30a24f6cabb88766b409f76195ae725813/sys/arch/riscv/include/wchar_limits.h#L1-L3
https://github.com/NetBSD/src/blob/22482b30a24f6cabb88766b409f76195ae725813/sys/sys/common_wchar_limits.h#L41-L43

cc @brad0 you might be interested in this since you did the initial riscv(32,64)-netbsd enablement in Clang?

Metadata

Metadata

Assignees

No one assigned

    Labels

    clang:frontendLanguage frontend issues, e.g. anything involving "Sema"

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions