From f45345edd9a8dd7b3c1dde4560fa59dbc4a387bf Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 21 Oct 2002 07:48:00 +0000 Subject: 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 --- firmware/debug.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3