summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Häggqvist <rasher@rasher.dk>2008-12-09 18:15:19 +0000
committerJonas Häggqvist <rasher@rasher.dk>2008-12-09 18:15:19 +0000
commita13c16271911be641539cace3ea5ea0c1440eeaf (patch)
tree6934d69ce8454d425e2c5df29bba6da70fe76cdf
parent02184a242edd2e92f5305a29cadd6bc71448875a (diff)
downloadrockbox-a13c16271911be641539cace3ea5ea0c1440eeaf.tar.gz
rockbox-a13c16271911be641539cace3ea5ea0c1440eeaf.zip
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.c4
-rw-r--r--apps/gui/wps_parser.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/apps/gui/wps_debug.c b/apps/gui/wps_debug.c
index 5a18218a52..727d9078c6 100644
--- a/apps/gui/wps_debug.c
+++ b/apps/gui/wps_debug.c
@@ -19,7 +19,7 @@
19 * 19 *
20 ****************************************************************************/ 20 ****************************************************************************/
21 21
22#ifdef DEBUG 22#if defined(DEBUG) || defined(SIMULATOR)
23 23
24#include <stdio.h> 24#include <stdio.h>
25#include <string.h> 25#include <string.h>
@@ -638,4 +638,4 @@ void print_debug_info(struct wps_data *data, enum wps_parse_error fail, int line
638 } 638 }
639} 639}
640 640
641#endif /* DEBUG */ 641#endif /* DEBUG || SIMULATOR */
diff --git a/apps/gui/wps_parser.c b/apps/gui/wps_parser.c
index c36a375a1c..42853e8fae 100644
--- a/apps/gui/wps_parser.c
+++ b/apps/gui/wps_parser.c
@@ -104,7 +104,7 @@ static const char *bmp_names[MAX_BITMAPS];
104 104
105#endif /* HAVE_LCD_BITMAP */ 105#endif /* HAVE_LCD_BITMAP */
106 106
107#ifdef DEBUG 107#if defined(DEBUG) || defined(SIMULATOR)
108/* debugging function */ 108/* debugging function */
109extern void print_debug_info(struct wps_data *data, int fail, int line); 109extern void print_debug_info(struct wps_data *data, int fail, int line);
110#endif 110#endif
@@ -1471,7 +1471,7 @@ static bool wps_parse(struct wps_data *data, const char *wps_bufptr)
1471 /* We have finished with the last viewport, so increment count */ 1471 /* We have finished with the last viewport, so increment count */
1472 data->num_viewports++; 1472 data->num_viewports++;
1473 1473
1474#ifdef DEBUG 1474#if defined(DEBUG) || defined(SIMULATOR)
1475 print_debug_info(data, fail, line); 1475 print_debug_info(data, fail, line);
1476#endif 1476#endif
1477 1477