mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
Use __has_include
to choose between <Block.h> and <objc/blocks_runtime.h>
Most Linux distributions and MSYS2 include a version of BlocksRuntime which includes the `Block.h` header.
This commit is contained in:
parent
531d3b8559
commit
1f2eba393c
1 changed files with 1 additions and 1 deletions
|
@ -358,7 +358,7 @@ static inline void gs_consumed(id NS_CONSUMED GS_UNUSED_ARG o) { return; }
|
|||
*/
|
||||
#if __has_feature(blocks)
|
||||
# if OBJC2RUNTIME
|
||||
# if defined(__APPLE__)
|
||||
# if __has_include(<Block.h>)
|
||||
# include <Block.h>
|
||||
# else
|
||||
# include <objc/blocks_runtime.h>
|
||||
|
|
Loading…
Reference in a new issue