Skip to content

Explicitly import CoreFoundation#3

Open
davedelong wants to merge 1 commit into
htacg:masterfrom
heathen-app:linux
Open

Explicitly import CoreFoundation#3
davedelong wants to merge 1 commit into
htacg:masterfrom
heathen-app:linux

Conversation

@davedelong

Copy link
Copy Markdown

On Apple platforms, Foundation re-exports CoreFoundation, which means that doing import Foundation also includes the symbols for CoreFoundation. On Linux, this is not the case.

Therefore, compiling SwLibTidy on Linux fails compilation with errors like:

cannot find 'CFStringEncodings' in scope

and

cannot find 'CFStringConvertEncodingToNSStringEncoding' in scope

unless you explicitly import CoreFoundation.

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.

1 participant