ivars.c: Include stdlib.h.
authorNicola Pero <nicola.pero@meta-innovation.com>
Thu, 18 Nov 2010 02:11:33 +0000 (02:11 +0000)
committerNicola Pero <nicola@gcc.gnu.org>
Thu, 18 Nov 2010 02:11:33 +0000 (02:11 +0000)
2010-11-18  Nicola Pero  <nicola.pero@meta-innovation.com>

        * ivars.c: Include stdlib.h.
        * protocols.c: Same change.

From-SVN: r166895

libobjc/ChangeLog
libobjc/ivars.c
libobjc/protocols.c

index 2c79b2da0c8b4f307f8484d0d7ed43ab38a93cde..02be0ebd0e82d7cc799ba8e4a9f587a7c3ce9b82 100644 (file)
@@ -1,3 +1,8 @@
+2010-11-18  Nicola Pero  <nicola.pero@meta-innovation.com>
+
+       * ivars.c: Include stdlib.h.
+       * protocols.c: Same change.
+
 2010-10-24  Nicola Pero  <nicola.pero@meta-innovation.com>
 
        * Makefile.in (OBJC_SOURCE_FILES): Added accessors.m.
index 8d5f4abdd393bb2f4436b00df46a10594df08afe..69524bfd1ddbec9f3ad09470a6b1f814130b3a98 100644 (file)
@@ -27,7 +27,8 @@ see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
 #include "objc-private/module-abi-8.h" /* For runtime structures  */
 #include "objc/thr.h"
 #include "objc-private/runtime.h"      /* the kitchen sink */
-#include <string.h>                    /* For strcmp */
+#include <string.h>                    /* For strcmp.  */
+#include <stdlib.h>                    /* For malloc.  */
 
 struct objc_ivar *
 class_getInstanceVariable (Class class_, const char *name)
index 421e566e9121ef49855726a98096c9ca254d78b5..05a750758c75a77ebdeb0d3638c97057351e68f2 100644 (file)
@@ -28,7 +28,9 @@ see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
 #include "objc/thr.h"
 #include "objc-private/runtime.h"      /* the kitchen sink */
 #include "objc-private/hash.h"         /* For the hash table of protocols.  */
-#include "objc-private/protocols.h"    /* For __objc_protocols_init() and __objc_protocols_add_protocol() */
+#include "objc-private/protocols.h"    /* For __objc_protocols_init() and
+                                          __objc_protocols_add_protocol().  */
+#include <stdlib.h>                    /* For malloc.  */
 
 /* This is a table that maps a name to a Protocol instance with that
    name.  Because there may be multiple Protocol instances with the