@available() and compiler black/white listing?

René J.V. Bertin rjvbertin at gmail.com
Wed Jun 26 22:08:27 UTC 2019


I just spent a considerable time finding all `if (@available(macOS 10_14, *))` statements in the VLC code, and wrapping them with conditional tags.

If memory serves me well, clang 5.0 and newer should accept that syntax. What clang versions could I blacklist in the Portfile so that this code will build on older systems like 10.11 ... or is it bound to fail anyway because the compiler will still choke on the code inside the @available() statement?


More information about the macports-dev mailing list