diff options
author | Iain Sandoe <iain@sandoe.co.uk> | 2019-06-21 19:03:45 +0000 |
---|---|---|
committer | Iain Sandoe <iains@gcc.gnu.org> | 2019-06-21 19:03:45 +0000 |
commit | 59a0b1db756fc17b952c8423b015154a7bd23d10 (patch) | |
tree | 4abe4978c16869c56b5e3d6e26351c671ae980dc /fixincludes/tests | |
parent | 8d5558c518a8812276aee50cca3da8ca5cce3091 (diff) | |
download | gcc-59a0b1db756fc17b952c8423b015154a7bd23d10.zip gcc-59a0b1db756fc17b952c8423b015154a7bd23d10.tar.gz gcc-59a0b1db756fc17b952c8423b015154a7bd23d10.tar.bz2 |
[Darwin, fixincludes] Fix Darwin14 header issues.
There are two issues with the Darwin14 (SDK) headers in which unguarded
advanced syntax elements causes any code including these headers to fail.
2019-06-21 Iain Sandoe <iain@sandoe.co.uk>
* inclhack.def: Guard __has_attribute and __has_extension in
os/base.h.
Guard Apple blocks syntax in dispatch/object.h.
* fixincl.x: Regenerate.
* tests/base/dispatch/object.h: New file.
* tests/base/os/base.h: New file.
From-SVN: r272561
Diffstat (limited to 'fixincludes/tests')
-rw-r--r-- | fixincludes/tests/base/dispatch/object.h | 18 | ||||
-rw-r--r-- | fixincludes/tests/base/os/base.h | 20 |
2 files changed, 38 insertions, 0 deletions
diff --git a/fixincludes/tests/base/dispatch/object.h b/fixincludes/tests/base/dispatch/object.h new file mode 100644 index 0000000..36722f4 --- /dev/null +++ b/fixincludes/tests/base/dispatch/object.h @@ -0,0 +1,18 @@ +/* DO NOT EDIT THIS FILE. + + It has been auto-edited by fixincludes from: + + "fixinc/tests/inc/dispatch/object.h" + + This had to be done to correct non-standard usages in the + original, manufacturer supplied header file. */ + + + +#if defined( DARWIN_DISPATCH_OBJECT_1_CHECK ) +#if __BLOCKS__ +typedef void (^dispatch_block_t)(void); +#endif + +__BEGIN_DECLS +#endif /* DARWIN_DISPATCH_OBJECT_1_CHECK */ diff --git a/fixincludes/tests/base/os/base.h b/fixincludes/tests/base/os/base.h new file mode 100644 index 0000000..44aa393 --- /dev/null +++ b/fixincludes/tests/base/os/base.h @@ -0,0 +1,20 @@ +/* DO NOT EDIT THIS FILE. + + It has been auto-edited by fixincludes from: + + "fixinc/tests/inc/os/base.h" + + This had to be done to correct non-standard usages in the + original, manufacturer supplied header file. */ + + + +#if defined( DARWIN_OS_BASE_1_CHECK ) +#define __has_attribute(x) 0 +#endif +#ifndef __has_extension +#define __has_extension(x) 0 +#endif + +#if __GNUC__ +#endif /* DARWIN_OS_BASE_1_CHECK */ |