* Headers/GNUstepBase/GSBlocks.h: Fixed the DEFINE_BLOCK_TYPE macro

for certain GCC versions


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36975 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
lubosd 2013-08-14 21:34:31 +00:00
parent b0d091bb19
commit 63253fa342
2 changed files with 4 additions and 2 deletions

View file

@ -2,6 +2,8 @@
* Source/NSBundle.m: add NSBundle pathForAuxiliaryExecutable: and
-privateFrameworksPath and their URL counterparts
* Headers/GNUstepBase/GSBlocks.h: Fixed the DEFINE_BLOCK_TYPE macro
for certain GCC versions
2013-08-12 Richard Frith-Macdonald <rfm@gnu.org>

View file

@ -70,12 +70,12 @@ typedef retTy(^name)()
#else /* GCC_VERSION >= 3000 */
#define DEFINE_BLOCK_TYPE(name, retTy, argTys, args...) \
#define DEFINE_BLOCK_TYPE(name, retTy, argTys...) \
typedef struct {\
void *isa;\
int flags;\
int reserved;\
retTy (*invoke)(void*, argTys, args);\
retTy (*invoke)(void*, argTys);\
} *name
#define DEFINE_BLOCK_TYPE_NO_ARGS(name, retTy) \