From a13c16271911be641539cace3ea5ea0c1440eeaf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20H=C3=A4ggqvist?= Date: Tue, 9 Dec 2008 18:15:19 +0000 Subject: Compile the WPS debug functions for the sim, to make --debugwps work. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19371 a1c6a512-1295-4272-9138-f99709370657 --- apps/gui/wps_debug.c | 4 ++-- apps/gui/wps_parser.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/gui/wps_debug.c b/apps/gui/wps_debug.c index 5a18218..727d907 100644 --- a/apps/gui/wps_debug.c +++ b/apps/gui/wps_debug.c @@ -19,7 +19,7 @@ * ****************************************************************************/ -#ifdef DEBUG +#if defined(DEBUG) || defined(SIMULATOR) #include #include @@ -638,4 +638,4 @@ void print_debug_info(struct wps_data *data, enum wps_parse_error fail, int line } } -#endif /* DEBUG */ +#endif /* DEBUG || SIMULATOR */ diff --git a/apps/gui/wps_parser.c b/apps/gui/wps_parser.c index c36a375..42853e8 100644 --- a/apps/gui/wps_parser.c +++ b/apps/gui/wps_parser.c @@ -104,7 +104,7 @@ static const char *bmp_names[MAX_BITMAPS]; #endif /* HAVE_LCD_BITMAP */ -#ifdef DEBUG +#if defined(DEBUG) || defined(SIMULATOR) /* debugging function */ extern void print_debug_info(struct wps_data *data, int fail, int line); #endif @@ -1471,7 +1471,7 @@ static bool wps_parse(struct wps_data *data, const char *wps_bufptr) /* We have finished with the last viewport, so increment count */ data->num_viewports++; -#ifdef DEBUG +#if defined(DEBUG) || defined(SIMULATOR) print_debug_info(data, fail, line); #endif -- cgit v1.1