summaryrefslogtreecommitdiff
path: root/libobjc/objc-private
diff options
context:
space:
mode:
authornicola <nicola@138bc75d-0d04-0410-961f-82ee72b054a4>2010-12-21 11:50:14 +0000
committernicola <nicola@138bc75d-0d04-0410-961f-82ee72b054a4>2010-12-21 11:50:14 +0000
commitd7195a659c99202b186b44fce1bc13b45b3bf916 (patch)
tree653a4b51d95f0dd2a3692e94dc65b13dc130d56d /libobjc/objc-private
parent5fe0cb1f487c4141ec62245fffb66f5b84208831 (diff)
downloadgcc-d7195a659c99202b186b44fce1bc13b45b3bf916.tar.gz
In libobjc/:
2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com> * objc-private/runtime.h (DEBUG_PRINTF): Moved from here ... * objc-private/common.h (DEBUG_PRINTF): To here. * hash.c: Do not include objc-private/runtime.h and objc/thr.h. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168111 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libobjc/objc-private')
-rw-r--r--libobjc/objc-private/common.h12
-rw-r--r--libobjc/objc-private/runtime.h6
2 files changed, 8 insertions, 10 deletions
diff --git a/libobjc/objc-private/common.h b/libobjc/objc-private/common.h
index 1642faa5139..cbb335b8f83 100644
--- a/libobjc/objc-private/common.h
+++ b/libobjc/objc-private/common.h
@@ -26,13 +26,17 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
#define __objc_private_common_INCLUDE_GNU
/* This file contains definitions that should be included by all .c
- and .m files in libobjc.
-*/
+ and .m files in libobjc. */
/* This variable allows the public headers to determine when they are
being included by a file inside libobjc itself, or when they are
- being included by an external file.
-*/
+ being included by an external file. */
#define GNU_LIBOBJC_COMPILING_LIBOBJC_ITSELF 1
+#ifdef DEBUG
+#define DEBUG_PRINTF(format, args...) printf (format, ## args)
+#else
+#define DEBUG_PRINTF(format, args...)
+#endif
+
#endif /* __objc_private_common_INCLUDE_GNU */
diff --git a/libobjc/objc-private/runtime.h b/libobjc/objc-private/runtime.h
index ba01f576227..5fd07448183 100644
--- a/libobjc/objc-private/runtime.h
+++ b/libobjc/objc-private/runtime.h
@@ -77,12 +77,6 @@ extern objc_mutex_t __objc_runtime_mutex;
/* Number of threads which are alive. */
extern int __objc_runtime_threads_alive;
-#ifdef DEBUG
-#define DEBUG_PRINTF(format, args...) printf (format, ## args)
-#else
-#define DEBUG_PRINTF(format, args...)
-#endif
-
BOOL __objc_responds_to (id object, SEL sel); /* for internal use only! */
extern void __objc_generate_gc_type_description (Class);