diff options
Diffstat (limited to 'apps/gui/wps_debug.c')
-rw-r--r-- | apps/gui/wps_debug.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/apps/gui/wps_debug.c b/apps/gui/wps_debug.c index 8ba4b6f000..ae542785ae 100644 --- a/apps/gui/wps_debug.c +++ b/apps/gui/wps_debug.c | |||
@@ -22,13 +22,17 @@ | |||
22 | #include <stdio.h> | 22 | #include <stdio.h> |
23 | #include <string.h> | 23 | #include <string.h> |
24 | #include "gwps.h" | 24 | #include "gwps.h" |
25 | #ifdef __PCTOOL__ | ||
26 | #define DEBUGF printf | ||
27 | #else | ||
25 | #include "debug.h" | 28 | #include "debug.h" |
29 | #endif | ||
26 | 30 | ||
27 | #define PARSE_FAIL_UNCLOSED_COND 1 | 31 | #define PARSE_FAIL_UNCLOSED_COND 1 |
28 | #define PARSE_FAIL_INVALID_CHAR 2 | 32 | #define PARSE_FAIL_INVALID_CHAR 2 |
29 | #define PARSE_FAIL_COND_SYNTAX_ERROR 3 | 33 | #define PARSE_FAIL_COND_SYNTAX_ERROR 3 |
30 | 34 | ||
31 | #ifdef SIMULATOR | 35 | #if defined(SIMULATOR) || defined(__PCTOOL__) |
32 | extern bool debug_wps; | 36 | extern bool debug_wps; |
33 | #endif | 37 | #endif |
34 | 38 | ||
@@ -467,7 +471,7 @@ static void print_img_cond_indexes(struct wps_data *data) | |||
467 | 471 | ||
468 | void print_debug_info(struct wps_data *data, int fail, int line) | 472 | void print_debug_info(struct wps_data *data, int fail, int line) |
469 | { | 473 | { |
470 | #ifdef SIMULATOR | 474 | #if defined(SIMULATOR) || defined(__PCTOOL__) |
471 | if (debug_wps) | 475 | if (debug_wps) |
472 | { | 476 | { |
473 | dump_wps_tokens(data); | 477 | dump_wps_tokens(data); |