diff options
author | Daniel Stenberg <daniel@haxx.se> | 2002-10-21 07:48:00 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2002-10-21 07:48:00 +0000 |
commit | f45345edd9a8dd7b3c1dde4560fa59dbc4a387bf (patch) | |
tree | 3e58fe0c5420c5ed41e256892249ad3bd67c8e03 | |
parent | aeb3d0dcefdaf17e9057d283c145c9ee2c6384cd (diff) | |
download | rockbox-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.h | 7 |
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, ...); | |||
26 | #ifdef __GNUC__ | 26 | #ifdef __GNUC__ |
27 | 27 | ||
28 | /* */ | 28 | /* */ |
29 | #if defined(DEBUG) || defined(SIMULATOR) | 29 | #if defined(SIMULATOR) |
30 | #define DEBUGF debugf | 30 | #define DEBUGF debugf |
31 | #define LDEBUGF(...) ldebugf(__FILE__, __LINE__, __VA_ARGS__) | 31 | #define LDEBUGF(...) ldebugf(__FILE__, __LINE__, __VA_ARGS__) |
32 | #else | 32 | #else |
33 | #if defined(DEBUG) | ||
34 | #define DEBUGF debugf | ||
35 | #define LDEBUGF debugf | ||
36 | #else | ||
33 | #define DEBUGF(...) | 37 | #define DEBUGF(...) |
34 | #define LDEBUGF(...) | 38 | #define LDEBUGF(...) |
35 | #endif | 39 | #endif |
40 | #endif | ||
36 | 41 | ||
37 | 42 | ||
38 | #else | 43 | #else |