diff options
author | Nicola Pero <nicola.pero@meta-innovation.com> | 2010-09-11 22:47:14 +0000 |
---|---|---|
committer | Nicola Pero <nicola@gcc.gnu.org> | 2010-09-11 22:47:14 +0000 |
commit | 6dead247c97de92dc042afc5ff360a7c983dc39d (patch) | |
tree | aeee442b6141a22a4e3548f6ffa77674cf0c98d1 /libobjc/misc.c | |
parent | 83c28dfd5c0de814f57f42a0ff04a0aa82851aea (diff) | |
download | gcc-6dead247c97de92dc042afc5ff360a7c983dc39d.zip gcc-6dead247c97de92dc042afc5ff360a7c983dc39d.tar.gz gcc-6dead247c97de92dc042afc5ff360a7c983dc39d.tar.bz2 |
In libobjc/:
* objc/objc.h (__GNU_LIBOBJC__): New #define providing an easy way
to check the API version. Added some comments.
* objc-private/common.h: New file.
* NXConstStr.m: Include objc-private/common.h.
* Object.m: Same change.
* Protocol.m: Same change.
* archive.c: Same change.
* class.c: Same change.
* encoding.c: Same change.
* exception.c: Same change.
* gc.c: Same change.
* hash.c: Same change.
* init.c: Same change.
* libobjc_entry.c: Same change.
* linking.m: Same change.
* misc.c: Same change (and added a comment).
* nil_method.c: Same change.
* objects.c: Same change.
* sarray.c: Same change.
* selector.c: Same change.
* sendmsg.c: Same change.
* thr.c: Same change.
From-SVN: r164218
Diffstat (limited to 'libobjc/misc.c')
-rw-r--r-- | libobjc/misc.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libobjc/misc.c b/libobjc/misc.c index e67f345..fde1f30 100644 --- a/libobjc/misc.c +++ b/libobjc/misc.c @@ -24,9 +24,15 @@ a copy of the GCC Runtime Library Exception along with this program; see the files COPYING3 and COPYING.RUNTIME respectively. If not, see <http://www.gnu.org/licenses/>. */ +#include "objc-private/common.h" +/* __USE_FIXED_PROTOTYPES__ used to be required to get prototypes for + malloc, free, etc. on some platforms. It is unclear if we still + need it, but it can't hurt. +*/ #define __USE_FIXED_PROTOTYPES__ #include <stdlib.h> + #include "objc/objc.h" #include "objc/objc-api.h" #include "objc-private/runtime.h" |