aboutsummaryrefslogtreecommitdiff
path: root/libobjc/objc
diff options
context:
space:
mode:
authorNicola Pero <nicola.pero@meta-innovation.com>2010-09-11 22:47:14 +0000
committerNicola Pero <nicola@gcc.gnu.org>2010-09-11 22:47:14 +0000
commit6dead247c97de92dc042afc5ff360a7c983dc39d (patch)
treeaeee442b6141a22a4e3548f6ffa77674cf0c98d1 /libobjc/objc
parent83c28dfd5c0de814f57f42a0ff04a0aa82851aea (diff)
downloadgcc-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/objc')
-rw-r--r--libobjc/objc/objc.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/libobjc/objc/objc.h b/libobjc/objc/objc.h
index 17ae49b..6c3214f 100644
--- a/libobjc/objc/objc.h
+++ b/libobjc/objc/objc.h
@@ -26,12 +26,27 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
#ifndef __objc_INCLUDE_GNU
#define __objc_INCLUDE_GNU
+/* This file contains the definition of the basic types used by the
+ Objective-C language. It needs to be included to do almost
+ anything with Objective-C.
+*/
+
#ifdef __cplusplus
extern "C" {
#endif
#include <stddef.h>
+/* The current version of the GNU Objective-C Runtime library in
+ compressed ISO date format. This should be updated any time a new
+ version is released with changes to the public API (there is no
+ need to update it if there were no API changes since the previous
+ release). This macro is only defined starting with the GNU
+ Objective-C Runtime shipped with GCC 4.6.0. If it is not defined,
+ it is either an older version of the runtime, or another runtime.
+*/
+#define __GNU_LIBOBJC__ 20100911
+
/*
Definition of the boolean type.