mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-05 14:11:00 +00:00
include runtime header for blocks support if the compiler has it.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30812 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
8221389f04
commit
324800cbea
2 changed files with 14 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2010-06-22 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
|
* Headers/Additions/GNUstepBase/GSVersionMacros.h:
|
||||||
|
Include header for ObjC2 blocks support if the compiler had that.
|
||||||
|
|
||||||
2010-06-20 Richard Frith-Macdonald <rfm@gnu.org>
|
2010-06-20 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
* Version 1.21.1
|
* Version 1.21.1
|
||||||
|
|
|
@ -228,6 +228,15 @@
|
||||||
|
|
||||||
#define GS_EXPOSE(X) (!GS_NONFRAGILE || defined(EXPOSE_##X##_IVARS))
|
#define GS_EXPOSE(X) (!GS_NONFRAGILE || defined(EXPOSE_##X##_IVARS))
|
||||||
|
|
||||||
|
/* Include the appropriate header for ObjC2 blocks support if it is in use.
|
||||||
|
*/
|
||||||
|
#if __has_feature(blocks)
|
||||||
|
# if OBJC2RUNTIME
|
||||||
|
# include <objc/blocks_runtime.h>
|
||||||
|
# else
|
||||||
|
# include <ObjectiveC2/blocks_runtime.h>
|
||||||
|
# endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue