diff --git a/ChangeLog b/ChangeLog index 67b5d69b1..a597817a2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2015-09-22 Riccardo Mottola + + * Headers\GNUstepBase\GSBlocks.h + Do not enable weak on mingw, because it works only with ELF. + 2015-09-18 Riccardo Mottola * Headers/Foundation/NSError.h diff --git a/Headers/GNUstepBase/GSBlocks.h b/Headers/GNUstepBase/GSBlocks.h index 0aeeb165a..b8732a11d 100644 --- a/Headers/GNUstepBase/GSBlocks.h +++ b/Headers/GNUstepBase/GSBlocks.h @@ -117,9 +117,14 @@ extern "C" { * by an application. */ +/* weak attributed supported only with ELF, MINGW is COFF */ +#ifndef __MINGW32__ + void *_Block_copy(void *) __attribute__((weak)); void _Block_release(void *) __attribute__((weak)); +#endif /* __MINGW32__ */ + #ifdef __cplusplus } #endif