I removed the check for __OBJC__ and all CF types are now defined as opaque structures. The current code generates A LOT of warnings, but they can be disregarded. I'll need to go back and fix these as time permits.
You should be able to compile your code without any errors now. Please report back if you have more issues. On Fri, Mar 13, 2015 at 11:03 AM, Stefan Bidigaray <stefanb...@gmail.com> wrote: > This incompatibility came up last month, too. I wanted to consult David > C., who wrote the GNUstep runtime (where the ARC code is) just to double > check that it was as straight forward as it seems. But after some thought, > I think this is an easy enough fix. The code is only the way it is because > of some historic reasons, anyway. I won't have time to do anything with it > today, but will check on it this weekend. I'll let you know when its done > and you can check the code out again from SVN. > > On Fri, Mar 13, 2015 at 6:49 AM, 陈北宗 <xcvi...@gmail.com> wrote: > >> I was trying to compile some existing OS X code, in which made heavy use >> of Toll-Free bridging between CoreFoundation and Foundation and is written >> using ARC. It doesn’t compile on GNUstep at all. >> >> The culprit is that the toll-free bridging code typedef’d Foundation >> types to CF types. This is not allowed in ARC. >> >> Is there any workaround possible? Or should we consider rewriting >> CoreBase into some more Apple like fashion? >> >> >> _______________________________________________ >> Gnustep-dev mailing list >> Gnustep-dev@gnu.org >> https://lists.gnu.org/mailman/listinfo/gnustep-dev >> >> >
_______________________________________________ Gnustep-dev mailing list Gnustep-dev@gnu.org https://lists.gnu.org/mailman/listinfo/gnustep-dev