Do not enable weak on mingw, because it works only with ELF

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39009 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Riccardo Mottola 2015-09-22 08:26:10 +00:00
parent 1852fbd6b1
commit 1d6a599be7
2 changed files with 10 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2015-09-22 Riccardo Mottola <rm@gnu.org>
* Headers\GNUstepBase\GSBlocks.h
Do not enable weak on mingw, because it works only with ELF.
2015-09-18 Riccardo Mottola <rm@gnu.org>
* Headers/Foundation/NSError.h

View file

@ -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