gcc/fixincludes/tests/base/dispatch/object.h
Iain Sandoe 59a0b1db75 [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
2019-06-21 19:03:45 +00:00

19 lines
403 B
C

/* 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 */