[MacPorts] #69688: legacy-support headers don't honor __DARWIN_C_LEVEL
MacPorts
noreply at macports.org
Sun Jul 21 01:10:37 UTC 2024
#69688: legacy-support headers don't honor __DARWIN_C_LEVEL
-----------------------------+-----------------------
Reporter: fhgwright | Owner: fhgwright
Type: defect | Status: closed
Priority: Low | Milestone:
Component: ports | Version: 2.9.3
Resolution: fixed | Keywords:
Port: legacy-support |
-----------------------------+-----------------------
Changes (by fhgwright):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"beb746704fad6db0223fed77ca68a3ab9712fb5f/macports-legacy-
support" beb746704fad6db0223fed77ca68a3ab9712fb5f/macports-legacy-support]
(master):
{{{
#!ConfigurableCommitTicketReference repository="macports-legacy-support"
revision="beb746704fad6db0223fed77ca68a3ab9712fb5f"
Add __DARWIN_C_LEVEL conditionals.
This adds conditionals on __DARWIN_C_LEVEL matching the ones in the
SDK headers that provide the relevant functions. These conditionals
exist to allow building against an older version of the standard,
without risk of collisions between recently added functions and
same-named functions in the project. This change extends that
behavior to the functions provided by legacy-support.
Since sys/stdio.h is unavailable prior to 10.7, our sys/stdio.h
includes sys/cdefs.h in that case to get the __DARWIN_C_* defs.
Closes: https://trac.macports.org/ticket/69688
Also makes a couple of cosmetic cleanups to affected headers.
TESTED:
Builds and passes tests on all platforms, including the new tests for
the various __DARWIN_C_LEVEL cases.
}}}
--
Ticket URL: <https://trac.macports.org/ticket/69688#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list