summaryrefslogtreecommitdiff
path: root/libobjc/misc.c
diff options
context:
space:
mode:
authornicola <nicola@138bc75d-0d04-0410-961f-82ee72b054a4>2010-09-11 22:47:14 +0000
committernicola <nicola@138bc75d-0d04-0410-961f-82ee72b054a4>2010-09-11 22:47:14 +0000
commite58aa1bc95b9e4d200114e4263624935d1d4af3f (patch)
treeaeee442b6141a22a4e3548f6ffa77674cf0c98d1 /libobjc/misc.c
parent0c528ee024f9bc4bd6f84825f8ca183ed69b459d (diff)
downloadgcc-e58aa1bc95b9e4d200114e4263624935d1d4af3f.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@164218 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libobjc/misc.c')
-rw-r--r--libobjc/misc.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libobjc/misc.c b/libobjc/misc.c
index e67f345df5e..fde1f308671 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"