now builds for those who are too lazy to upgrade their xml libraries
authorSteve Baker <steve@stevebaker.org>
Sun, 27 May 2001 17:02:25 +0000 (17:02 +0000)
committerSteve Baker <steve@stevebaker.org>
Sun, 27 May 2001 17:02:25 +0000 (17:02 +0000)
Original commit message from CVS:
now builds for those who are too lazy to upgrade their xml libraries

tools/gstreamer-complete.c

index aaf70ace96895bd8bd79732d3ceaa5fae87379dc..26ad350829c67045c4c7f6ccff0d67cdfab189c8 100644 (file)
@@ -1,6 +1,14 @@
 #include <stdio.h>
 #include <string.h>
-#include <parser.h>
+#include <parser.h> // NOTE: this is xml-config's fault
+
+// Include compatability defines: if libxml hasn't already defined these,
+// we have an old version 1.x
+#ifndef xmlChildrenNode
+#define xmlChildrenNode childs
+#define xmlRootNode root
+#endif
+
 #include <glib.h>
 
 #include "config.h"