Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Enable Enum Imports and Synchronize Paths #2513

Merged
merged 2 commits into from Jan 2, 2020

Conversation

gmittert
Copy link
Contributor

Windows wasn't going down the 64bit enum path in CoreFoundation which caused CFDateComponentUndefined to be 32bit and NSDateComponentUndefined and thus not match. Since changing this causes the enum behavior to change, I've rebased #1729 and included it in this pull.

gmittert and others added 2 commits September 16, 2019 15:49
Since CoreFoundation on Windows doesn't compile with cplusplus and
doesn't have objc_fixed_enum, it goes down the wrong path for enums and
defaults them to a 32 bit backing.

This causes CFDateComponentUndefined to be 32bit value which then
doesn't match NSDateComponentUndefined which is an Int64.
@gmittert
Copy link
Contributor Author

@swift-ci please test

@compnerd
Copy link
Collaborator

I'm in favour of this, this looks good to me. Lets just poke @millenomi and @parkera before merging this.

@compnerd compnerd merged commit 1cfe66e into apple:master Jan 2, 2020
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.

None yet

2 participants