summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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