mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 08:26:27 +00:00
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:
parent
c7b037b9c1
commit
124966ad55
2 changed files with 9 additions and 0 deletions
|
@ -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:
|
||||
|
|
|
@ -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)))
|
||||
|
|
Loading…
Reference in a new issue