dotnet / runtime

.NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.
https://docs.microsoft.com/dotnet/core/
MIT License
15.41k stars 4.76k forks source link

[release/9.0-staging] Fix hostfxr.h to be valid C again. #110060

Open github-actions[bot] opened 11 hours ago

github-actions[bot] commented 11 hours ago

Backport of #109763 to release/9.0-staging

/cc @elinor-fung @alexrp

Customer Impact

hostfxr.h provided for customers doing custom hosting is not valid C, so consumers in C cannot not use the latest version.

Regression

Regressed in 9.0 with https://github.com/dotnet/runtime/pull/101451.

Testing

Manual.

Risk

Low. The change just adds the struct keyword for a function parameter such that the header is valid C again.