Skip to content

Commit c110bc0

Browse files
committed
gnustep-base: Add blocksruntime patch
1 parent 33afa34 commit c110bc0

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
commit a6f07549b8ea67e107a9a2fb3edadc7412311188 (HEAD -> blocks-rt)
2+
Author: Hugo Melder <service@hugomelder.com>
3+
Date: Mon Oct 20 13:38:44 2025 +0200
4+
5+
Use standard blocks runtime header
6+
7+
diff --git a/Headers/GNUstepBase/GSBlocks.h b/Headers/GNUstepBase/GSBlocks.h
8+
index 758b21130..bf745cb26 100644
9+
--- a/Headers/GNUstepBase/GSBlocks.h
10+
+++ b/Headers/GNUstepBase/GSBlocks.h
11+
@@ -112,8 +112,8 @@ typedef retTy(^name)()
12+
#define CALL_BLOCK_NO_ARGS(block) ({if (NULL != block) CALL_NON_NULL_BLOCK_NO_ARGS(block);})
13+
#define CALL_BLOCK_RET_NO_ARGS(block, rettype) ((NULL != block) ? (rettype)CALL_NON_NULL_BLOCK_NO_ARGS(block) : (rettype)0)
14+
15+
-#if __has_include(<objc/blocks_runtime.h>)
16+
-# include <objc/blocks_runtime.h>
17+
+#if __has_include(<Block.h>)
18+
+# include <Block.h>
19+
#else
20+
21+
#ifdef __cplusplus
22+

0 commit comments

Comments
 (0)