mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
Merge pull request #332 from qmfrederik/fixes/blocks-header-detection
Use `__has_include` to choose between <Block.h> and <objc/blocks_runtime.h>
This commit is contained in:
commit
b9ae7bf03c
1 changed files with 1 additions and 1 deletions
|
@ -355,7 +355,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