URL: <https://savannah.gnu.org/support/?111067>
Summary: Darwin OS versions & API version Group: Autoconf Submitter: sevan Submitted: Sun 19 May 2024 01:20:57 PM UTC Priority: 5 - Unprioritized Severity: 1 - Wish Status: None Privacy: Public Assigned to: None Originator Email: Open/Closed: Open Discussion Lock: Any Operating System: Mac OS _______________________________________________________ Follow-up Comments: ------------------------------------------------------- Date: Sun 19 May 2024 01:20:57 PM UTC By: Sevan Janiyan <sevan> Apple includes AvailabilityMacros.h for targeting OS versions with MAC_OS_X_VERSION_MIN_REQUIRED & MAC_OS_X_VERSION_MAX_ALLOWED macros. This header has been a part of Darwin since 6.x (OS X 10.2) and a more recent Availability.h for API availabilty based on targeted OS version (which OS version an API was introduced & deprecated), since Darwin 9 (OS X 10.5). A common idiom is to do an ifdef dance for __APPLE__ && __MACH__ before including these headers. Could autoconf probe for them by default and provide a symbol since they are a standard part of the OS and have been around for some time. It would make it easier for autoconf users & folks who package for Darwin to patch software. _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/support/?111067> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/