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:
Richard Frith-MacDonald 2010-06-22 10:09:51 +00:00
parent 16c3a7e11d
commit cfd056e44e
2 changed files with 14 additions and 0 deletions

View file

@ -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>
* Version 1.21.1

View file

@ -228,6 +228,15 @@
#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