Difference between mpbb and local builds
Link Dupont
link.dupont at mac.com
Sat Feb 3 03:08:12 UTC 2024
> On Feb 2, 2024, at 19:04, Joshua Root <jmr at macports.org> wrote:
>
> __MAC_OS_X_VERSION_MAX_ALLOWED is from AvailabilityInternal.h, which as its name suggests is only intended to be used internally (by Availability.h).
I’m not sure that’s the intention of the file AvailabilityInternal.h. I certainly suggests a private API, but I wonder if it’s more intended to hide the implementation of Availability.h macros behind a secondary layer of abstraction. Availability.h defines the various OS version integers, then includes AvailabilityInternal.h, and then checks if __<OS_VARIANT>_VERSION_MAX_ALLOWED is defined. I think the __MAC_OS_X_VERSION_MAX_ALLOWED macro is allowed to be used publicly.
That being said, including AvailabilityMacros.h and using MAC_OS_X_VERSION_MAX_ALLOWED accomplishes the exact same goal, so I don’t know which approach is better. I’ll fix the compile time error, and leave it to the upstream authors to decide whether to use Availability.h or AvailabilityMacros.h.
Thanks for everyone’s help figuring this out!
Link
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-dev/attachments/20240202/3945941a/attachment-0001.htm>
More information about the macports-dev
mailing list