From cc9d178af24cd687c65356504b5332a161c2a5ce Mon Sep 17 00:00:00 2001 From: Jan Schmidt Date: Sat, 12 Jun 2004 15:27:59 +0000 Subject: [PATCH] Add a libxml2 version check to make gst-compprep compile again on FC1 Original commit message from CVS: Add a libxml2 version check to make gst-compprep compile again on FC1 --- ChangeLog | 6 ++++++ tools/gst-compprep.c | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/ChangeLog b/ChangeLog index 4f8f2b1..cc217b7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2004-06-13 Jan Schmidt + + * tools/gst-compprep.c: (handle_xmlerror), (main): + Add a check for the version that introduced SetStructuredError to fix + the build on FC1 + 2004-06-12 Steve Lhomme * win32/msvc71.sln: diff --git a/tools/gst-compprep.c b/tools/gst-compprep.c index 12cbbb7..c9073f2 100644 --- a/tools/gst-compprep.c +++ b/tools/gst-compprep.c @@ -10,12 +10,16 @@ GST_DEBUG_CATEGORY_STATIC (debug_compprep); #define GST_CAT_DEFAULT debug_compprep #define GST_COMPREG_FILE (GST_CACHE_DIR "/compreg.xml") +#ifdef HAVE_LIBXML2 +#if LIBXML_VERSION >= 20600 void handle_xmlerror (void *userData, xmlErrorPtr error) { g_print ("Error writing the completion registry: %s, %s\n", GST_COMPREG_FILE, error->message); } +#endif +#endif int main (int argc, char *argv[]) @@ -128,7 +132,9 @@ main (int argc, char *argv[]) } #ifdef HAVE_LIBXML2 +#if LIBXML_VERSION >= 20600 xmlSetStructuredErrorFunc (NULL, handle_xmlerror); +#endif xmlSaveFormatFile (GST_COMPREG_FILE, doc, 1); #else xmlSaveFile (GST_COMPREG_FILE, doc); -- 2.7.4