Skip to content

Don't use #import when #include will do #663

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
Sep 29, 2016

Conversation

kastiglione
Copy link
Contributor

@kastiglione kastiglione commented Sep 29, 2016

This changes a few #import statements to #include. This is because Clang's MSVC compatibility does not handle #import statements outside of of objc.

#import of type library is an unsupported Microsoft feature

Clang's MSVC compatibility does not handle #import statements outside of of objc.

    #import of type library is an unsupported Microsoft feature
@modocache
Copy link
Contributor

@swift-ci please test

@parkera parkera merged commit b0d764d into swiftlang:master Sep 29, 2016
@kastiglione kastiglione deleted the include-not-import branch September 29, 2016 21:28
kastiglione pushed a commit to kastiglione/swift-corelibs-foundation that referenced this pull request Oct 11, 2016
This is because Clang's MSVC compatibility does not handle #import statements outside of of objc.

    #import of type library is an unsupported Microsoft feature

See also swiftlang#663
parkera pushed a commit that referenced this pull request Oct 11, 2016
This is because Clang's MSVC compatibility does not handle #import statements outside of of objc.

    #import of type library is an unsupported Microsoft feature

See also #663
kastiglione added a commit to kastiglione/swift-corelibs-foundation that referenced this pull request Jan 31, 2017
The change made in swiftlang#663 were overwritten by swiftlang#709. This change restores the switch from `#import` to `#include`.

The reason for this change is: Clang's MSVC compatibility does not handle `#import` statements outside of of objc.

> #import of type library is an unsupported Microsoft feature
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