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
This commit is contained in:
Jonas Häggqvist 2008-12-09 18:15:19 +00:00
parent 02184a242e
commit a13c162719
2 changed files with 4 additions and 4 deletions

View file

@ -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 */

View file

@ -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