aboutsummaryrefslogtreecommitdiff
path: root/libobjc/objc-private/common.h
diff options
context:
space:
mode:
authorNicola Pero <nicola.pero@meta-innovation.com>2010-12-21 11:50:14 +0000
committerNicola Pero <nicola@gcc.gnu.org>2010-12-21 11:50:14 +0000
commit9c68c0e59809906dd3675248ac84a1202ee6182c (patch)
tree653a4b51d95f0dd2a3692e94dc65b13dc130d56d /libobjc/objc-private/common.h
parent57d75eebe2eb48709fd9086236bb0757778ad617 (diff)
downloadgcc-9c68c0e59809906dd3675248ac84a1202ee6182c.zip
gcc-9c68c0e59809906dd3675248ac84a1202ee6182c.tar.gz
gcc-9c68c0e59809906dd3675248ac84a1202ee6182c.tar.bz2
In libobjc/: 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
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. From-SVN: r168111
Diffstat (limited to 'libobjc/objc-private/common.h')
-rw-r--r--libobjc/objc-private/common.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/libobjc/objc-private/common.h b/libobjc/objc-private/common.h
index 1642faa..cbb335b 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 */