Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Improvements for CppWinrt on Win32. #407

Merged
merged 1 commit into from
Jan 5, 2021
Merged

Improvements for CppWinrt on Win32. #407

merged 1 commit into from
Jan 5, 2021

Conversation

simeoncran
Copy link
Contributor

The code we were generating for cppwinrt had a couple issues when compiled for Win32 (vs UWP).

  1. It included a file that cppwinrt doesn't generate for Win32.
  2. It was relying on Windows.Foundation.Collections.h being included by something else.

The code we were generating for cppwinrt had a couple issues when compiled for Win32 (vs UWP).
1. It included a file that cppwinrt doesn't generate for Win32.
2. It was relying on Windows.Foundation.Collections.h being included by something else.
@simeoncran simeoncran requested a review from a team as a code owner January 5, 2021 18:40
// {_cppwinrtGeneratedFileNameBase}.cpp is needed for UWP, but is not usually generated by
// "cppwinrt for WIN32 apps. The file is related to how cppwinrt makes types activatable.
// If the file exists, we'll include it.
builder.WriteLine($"#if __has_include(\"{_cppwinrtGeneratedFileNameBase}.cpp\")");

Choose a reason for hiding this comment

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

__has_include [](start = 36, length = 13)

Wow, learn something new every day

Copy link

@scott-moore-ms scott-moore-ms left a comment

Choose a reason for hiding this comment

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

:shipit:

@simeoncran simeoncran merged commit 942074c into master Jan 5, 2021
@delete-merged-branch delete-merged-branch bot deleted the cppwinrtForWin32 branch January 5, 2021 23:07
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants