diff options
| author | Jonas Häggqvist <rasher@rasher.dk> | 2008-12-09 18:15:19 +0000 |
|---|---|---|
| committer | Jonas Häggqvist <rasher@rasher.dk> | 2008-12-09 18:15:19 +0000 |
| commit | a13c16271911be641539cace3ea5ea0c1440eeaf (patch) | |
| tree | 6934d69ce8454d425e2c5df29bba6da70fe76cdf | |
| parent | 02184a242edd2e92f5305a29cadd6bc71448875a (diff) | |
| download | rockbox-a13c16271911be641539cace3ea5ea0c1440eeaf.zip rockbox-a13c16271911be641539cace3ea5ea0c1440eeaf.tar.gz rockbox-a13c16271911be641539cace3ea5ea0c1440eeaf.tar.bz2 rockbox-a13c16271911be641539cace3ea5ea0c1440eeaf.tar.xz | |
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
| -rw-r--r-- | apps/gui/wps_debug.c | 4 | ||||
| -rw-r--r-- | 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 <stdio.h> #include <string.h> @@ -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 |