Index: xmllexer.c
===================================================================
RCS file: /cvsroot/xine/xine-lib/src/xine-utils/xmllexer.c,v
retrieving revision 1.12
diff -u -p -r1.12 xmllexer.c
--- xmllexer.c	20 Jun 2006 00:35:08 -0000	1.12
+++ xmllexer.c	17 Jan 2007 12:31:17 -0000
@@ -27,11 +27,17 @@
 #define LOG
 */
 
+#ifdef XINE_COMPILE
 #include "xineutils.h"
+#else
+#define lprintf(...)
+#define xine_xmalloc malloc
+#endif
 #include "xmllexer.h"
 #include <stdio.h>
 #include <ctype.h>
 #include <string.h>
+#include <stdlib.h>
 
 /* private constants*/
 #define NORMAL       0  /* normal lex mode */
Index: xmllexer.h
===================================================================
RCS file: /cvsroot/xine/xine-lib/src/xine-utils/xmllexer.h,v
retrieving revision 1.7
diff -u -p -r1.7 xmllexer.h
--- xmllexer.h	26 Sep 2006 05:19:49 -0000	1.7
+++ xmllexer.h	17 Jan 2007 12:31:17 -0000
@@ -25,6 +25,10 @@
 #ifndef XML_LEXER_H
 #define XML_LEXER_H
 
+#ifndef XINE_PROTECTED
+#define XINE_PROTECTED
+#endif
+
 /* public constants */
 #define T_ERROR         -1   /* lexer error */
 #define T_EOF            0   /* end of file */
Index: xmlparser.c
===================================================================
RCS file: /cvsroot/xine/xine-lib/src/xine-utils/xmlparser.c,v
retrieving revision 1.15
diff -u -p -r1.15 xmlparser.c
--- xmlparser.c	14 Feb 2006 02:25:01 -0000	1.15
+++ xmlparser.c	17 Jan 2007 12:31:17 -0000
@@ -35,7 +35,12 @@
 #define LOG
 */
 
+#ifdef XINE_COMPILE
 #include "xineutils.h"
+#else
+#define lprintf(...)
+#define xine_xmalloc malloc
+#endif
 #include "xmllexer.h"
 #include "xmlparser.h"
 
@@ -466,7 +471,7 @@ int xml_parser_build_tree(xml_node_t **r
   return res;
 }
 
-char *xml_parser_get_property (const xml_node_t *node, const char *name) {
+const char *xml_parser_get_property (const xml_node_t *node, const char *name) {
 
   xml_property_t *prop;
 
@@ -489,8 +494,8 @@ char *xml_parser_get_property (const xml
 int xml_parser_get_property_int (const xml_node_t *node, const char *name, 
 				 int def_value) {
 
-  char *v;
-  int   ret;
+  const char *v;
+  int         ret;
 
   v = xml_parser_get_property (node, name);
 
@@ -506,7 +511,7 @@ int xml_parser_get_property_int (const x
 int xml_parser_get_property_bool (const xml_node_t *node, const char *name, 
 				  int def_value) {
 
-  char *v;
+  const char *v;
 
   v = xml_parser_get_property (node, name);
 
Index: xmlparser.h
===================================================================
RCS file: /cvsroot/xine/xine-lib/src/xine-utils/xmlparser.h,v
retrieving revision 1.5
diff -u -p -r1.5 xmlparser.h
--- xmlparser.h	26 Sep 2006 05:19:49 -0000	1.5
+++ xmlparser.h	17 Jan 2007 12:31:17 -0000
@@ -23,6 +23,10 @@
 #ifndef XML_PARSER_H
 #define XML_PARSER_H
 
+#ifndef XINE_PROTECTED
+#define XINE_PROTECTED
+#endif
+
 /* parser modes */
 #define XML_PARSER_CASE_INSENSITIVE  0
 #define XML_PARSER_CASE_SENSITIVE    1
@@ -54,7 +58,7 @@ int xml_parser_build_tree(xml_node_t **r
 
 void xml_parser_free_tree(xml_node_t *root_node) XINE_PROTECTED;
 
-char *xml_parser_get_property (const xml_node_t *node, const char *name) XINE_PROTECTED;
+const char *xml_parser_get_property (const xml_node_t *node, const char *name) XINE_PROTECTED;
 int   xml_parser_get_property_int (const xml_node_t *node, const char *name, 
 				   int def_value) XINE_PROTECTED;
 int xml_parser_get_property_bool (const xml_node_t *node, const char *name, 
