[MacPorts] #62164: qemu @5.2.0: build failure with +cocoa
MacPorts
noreply at macports.org
Wed Jan 27 22:02:52 UTC 2021
#62164: qemu @5.2.0: build failure with +cocoa
---------------------+-----------------------
Reporter: Ionic | Owner: raimue
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords: legacy-os
Port: qemu |
---------------------+-----------------------
Comment (by kencu):
I don't immediately see the problem.
The availability stuff, I'm sure you know, looks like
[https://clang.llvm.org/docs/LanguageExtensions.html#objective-c-available
this] now:
{{{
void my_function(NSSomeClass* var) {
if (@available(macOS 10.12, *)) {
[var fancyNewMethod];
} else {
// Put fallback behavior for old macOS versions (and for non-mac
// platforms) here.
}
}}}}
--
Ticket URL: <https://trac.macports.org/ticket/62164#comment:8>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list