aboutsummaryrefslogtreecommitdiff
path: root/fixincludes/tests
diff options
context:
space:
mode:
authorC.G. Dogan <gcc+cgdogan.00@gmail.com>2019-08-18 18:54:13 +0000
committerIain Sandoe <iains@gcc.gnu.org>2019-08-18 18:54:13 +0000
commit5c439f4d675813d18876b191137dcd5849bd6e7e (patch)
tree24fde358f394cd6063a23fb9c7a845d4be760259 /fixincludes/tests
parentda92beb3726e8acafe0301fdf0d3381a33d0ccd4 (diff)
downloadgcc-5c439f4d675813d18876b191137dcd5849bd6e7e.zip
gcc-5c439f4d675813d18876b191137dcd5849bd6e7e.tar.gz
gcc-5c439f4d675813d18876b191137dcd5849bd6e7e.tar.bz2
[Darwin, fixincludes] Fix PR83531
There is no reasonable chance that the SDKs in question will be re- issued, so the only viable solution is a fixincludes. 2019-08-18 C.G. Dogan <gcc+cgdogan.00@gmail.com> Iain Sandoe <iain@sandoe.co.uk> PR target/83531 * inclhack.def (darwin_api_availability): New, strip leading underscores from API_XXXX defines. * fixincl.x: Regenerate. * tests/base/os/availability.h: New file. Co-Authored-By: Iain Sandoe <iain@sandoe.co.uk> From-SVN: r274624
Diffstat (limited to 'fixincludes/tests')
-rw-r--r--fixincludes/tests/base/os/availability.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/fixincludes/tests/base/os/availability.h b/fixincludes/tests/base/os/availability.h
new file mode 100644
index 0000000..e8696b1
--- /dev/null
+++ b/fixincludes/tests/base/os/availability.h
@@ -0,0 +1,18 @@
+/* DO NOT EDIT THIS FILE.
+
+ It has been auto-edited by fixincludes from:
+
+ "fixinc/tests/inc/os/availability.h"
+
+ This had to be done to correct non-standard usages in the
+ original, manufacturer supplied header file. */
+
+
+
+#if defined( DARWIN_API_AVAILABILITY_CHECK )
+ #define API_AVAILABLE(...)
+ #define API_DEPRECATED(...)
+ #define API_DEPRECATED_WITH_REPLACEMENT(...)
+ #define API_UNAVAILABLE(...)
+
+#endif /* DARWIN_API_AVAILABILITY_CHECK */