Skip to content

CoreFoundation: use #include instead of #import #1754

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

Merged
merged 1 commit into from
Nov 7, 2018

Conversation

compnerd
Copy link
Member

@compnerd compnerd commented Nov 6, 2018

#import when building for Windows will be treated as the import of a
type library rather than the semantics of Objective-C style #import
which does an include once type of operation. Convert to the #include
syntax instead to allow this to be built on Windows as well (e.g. via
clang-cl).

@compnerd
Copy link
Member Author

compnerd commented Nov 6, 2018

CC: @millenomi @phausler

@compnerd
Copy link
Member Author

compnerd commented Nov 6, 2018

@swift-ci please test

Copy link
Contributor

@parkera parkera left a comment

Choose a reason for hiding this comment

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

With @phausler 's comment addressed, lgtm.

`#import` when building for Windows will be treated as the import of a
type library rather than the semantics of Objective-C style `#import`
which does an include once type of operation.  Convert to the `#include`
syntax instead to allow this to be built on Windows as well (e.g. via
clang-cl).
@compnerd compnerd force-pushed the include-import-shuffle branch from 3324cd5 to 34854e2 Compare November 7, 2018 05:56
@compnerd
Copy link
Member Author

compnerd commented Nov 7, 2018

@swift-ci please test

@compnerd compnerd merged commit 0c95133 into swiftlang:master Nov 7, 2018
@compnerd compnerd deleted the include-import-shuffle branch November 7, 2018 07:41
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.

3 participants