summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-10-21 07:48:00 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-10-21 07:48:00 +0000
commitf45345edd9a8dd7b3c1dde4560fa59dbc4a387bf (patch)
tree3e58fe0c5420c5ed41e256892249ad3bd67c8e03
parentaeb3d0dcefdaf17e9057d283c145c9ee2c6384cd (diff)
downloadrockbox-f45345edd9a8dd7b3c1dde4560fa59dbc4a387bf.tar.gz
rockbox-f45345edd9a8dd7b3c1dde4560fa59dbc4a387bf.zip
ldebugf() is only present in SIMULATOR, we set LDEBUGF to be the normal
debugf() when not building simulator git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2728 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/debug.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/firmware/debug.h b/firmware/debug.h
index 878da295bc..f8aa7d4113 100644
--- a/firmware/debug.h
+++ b/firmware/debug.h
@@ -26,13 +26,18 @@ extern void ldebugf(char* file, int line, char *fmt, ...);
#ifdef __GNUC__
/* */
-#if defined(DEBUG) || defined(SIMULATOR)
+#if defined(SIMULATOR)
#define DEBUGF debugf
#define LDEBUGF(...) ldebugf(__FILE__, __LINE__, __VA_ARGS__)
#else
+#if defined(DEBUG)
+#define DEBUGF debugf
+#define LDEBUGF debugf
+#else
#define DEBUGF(...)
#define LDEBUGF(...)
#endif
+#endif
#else