Darwin, fixincludes: Handle MacOS13 SDK Apple-specific deprecations [PR107568].
authorIain Sandoe <iain@sandoe.co.uk>
Wed, 18 Jan 2023 19:58:33 +0000 (19:58 +0000)
committerIain Sandoe <iain@sandoe.co.uk>
Sat, 21 Jan 2023 17:07:07 +0000 (17:07 +0000)
commit442d2bdc1d2a98aba0b18aeaa3e87fa946ac8031
treef045facec7510be57c1a9a1c59a108588426eb1d
parent1bdb1768bf7d83ae87ba7c12bd9566830a1ac772
Darwin, fixincludes: Handle MacOS13 SDK Apple-specific deprecations [PR107568].

The SDK for MacOS13 includes Apple-specific deprecations of some functions that
are not deprecated in Posix, C or C++ and widely used in GCC.

The fix makes the deprecation conditional on __APPLE_LOCAL_DEPRECATIONS so that
end users may still observe them but they are hidden from normal compilations.

Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
PR target/107568

fixincludes/ChangeLog:

* fixincl.x: Regenerate.
* inclhack.def: Add a fix for MacOS13 SDK function deprecations
in stdio.h.
* tests/base/stdio.h (__deprecated_msg): New test.
fixincludes/fixincl.x
fixincludes/inclhack.def
fixincludes/tests/base/stdio.h