On NetBSD, undefine the system __weak first

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38767 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rmottola 2015-07-08 09:08:03 +00:00
parent c7b037b9c1
commit 124966ad55
2 changed files with 9 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2015-07-08 Riccardo Mottola <rm@gnu.org>
* Headers/GNUstepBase/GSConfig.h.in
On NetBSD, undefine the system __weak first.
2015-07-03 Niels Grewe <niels.grewe@halbordnung.de>
* Tests/base/NSXMLParser/ParseData/namespaced-attributes.xml:

View file

@ -409,6 +409,10 @@ typedef struct {
#endif
#if !__has_feature(objc_arc)
// NetBSD > 6 defines __weak in cdefs_elf.h
#ifdef __NetBSD__
#undef __weak
#endif
# if !defined(__weak)
# if __OBJC_GC__
# define __weak __attribute__((objc_gc(weak)))