Skip to content

🐛 Guard <stdnoreturn.h> for clang-cl - #863

Open
pnyaa wants to merge 1 commit into
ThrowTheSwitch:masterfrom
pnyaa:dev/msvc-cross
Open

pnyaa wants to merge 1 commit into
ThrowTheSwitch:masterfrom
pnyaa:dev/msvc-cross

Conversation

@pnyaa

@pnyaa pnyaa commented Nov 14, 2026 •

Copy link
Copy Markdown

🍍
When cross compiling for windows msvc from linux using xwin and clang-cl the compiler doesn't define __GNUC__ like it does when using regular clang for linux target. However the windows headers are still included, and <stdnoreturn.h> breaks __declspec(noreturn) in the sdk headers.

When cross compiling for windows msvc from linux using xwin and
clang-cl the compiler doesn't define __GNUC__ like it does when using
regular clang for linux target. However the windows headers are still
included, and <stdnoreturn.h> breaks __declspec(noreturn) in the sdk
headers.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant