Skip to content

Avoid a duplicate definition of CONTEXT_UNWOUND_TO_CALL if building with the v10.0.28000.0 SDK#127161

Open
tannergooding wants to merge 3 commits intodotnet:mainfrom
tannergooding:main
Open

Avoid a duplicate definition of CONTEXT_UNWOUND_TO_CALL if building with the v10.0.28000.0 SDK#127161
tannergooding wants to merge 3 commits intodotnet:mainfrom
tannergooding:main

Conversation

@tannergooding
Copy link
Copy Markdown
Member

This macro is now defined by the Windows SDK if on v10.0.28000.0 or later, so we need to avoid the redefinition error.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Avoids a build break caused by CONTEXT_UNWOUND_TO_CALL becoming defined by newer Windows SDKs (v10.0.28000.0+), by preventing a duplicate macro definition in CoreCLR cross-compilation headers.

Changes:

  • Guard CONTEXT_UNWOUND_TO_CALL definition in the ARM64 cross-compilation section of crosscomp.h with #ifndef.

Comment thread src/coreclr/inc/crosscomp.h
Copilot AI review requested due to automatic review settings April 20, 2026 22:32
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants