summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/skin_parser/SOURCES2
-rw-r--r--lib/skin_parser/skin_debug.h9
2 files changed, 10 insertions, 1 deletions
diff --git a/lib/skin_parser/SOURCES b/lib/skin_parser/SOURCES
index d99e63cd3b..3024797255 100644
--- a/lib/skin_parser/SOURCES
+++ b/lib/skin_parser/SOURCES
@@ -1,5 +1,7 @@
skin_buffer.c
skin_parser.c
+#ifndef ROCKBOX
skin_debug.c
+#endif
skin_scan.c
tag_table.c
diff --git a/lib/skin_parser/skin_debug.h b/lib/skin_parser/skin_debug.h
index 1c096ce952..8fc061a9f9 100644
--- a/lib/skin_parser/skin_debug.h
+++ b/lib/skin_parser/skin_debug.h
@@ -29,7 +29,7 @@ extern "C"
#endif
#include "skin_parser.h"
-
+#ifndef ROCKBOX
/* Debugging functions */
void skin_error(enum skin_errorcode error);
int skin_error_line(void);
@@ -40,6 +40,13 @@ void skin_debug_tree(struct skin_element* root);
/* Auxiliary debug functions */
void skin_debug_params(int count, struct skin_tag_parameter params[]);
void skin_debug_indent(void);
+#else
+
+#define skin_error(...)
+#define skin_clear_errors()
+
+#endif /* !ROCKBOX */
+
#ifdef __cplusplus
}