should fix an error in a no-glib2 error message, an error in libxml stuff and silenci...
authorAndy Wingo <wingo@pobox.com>
Fri, 25 Jan 2002 04:27:24 +0000 (04:27 +0000)
committerAndy Wingo <wingo@pobox.com>
Fri, 25 Jan 2002 04:27:24 +0000 (04:27 +0000)
Original commit message from CVS:
should fix an error in a no-glib2 error message, an error in libxml stuff
(newer versions of libxml1 can be included as libxml/parser.h), and silencing
a warning in the cothreads stuff

configure.ac
gst/cothreads/test-pth-pthreads2.c
gst/gstconfig.h

index 262d7a9..eb47f77 100644 (file)
@@ -244,7 +244,7 @@ GST_CHECK_FEATURE(GLIB2, [use of glib-2.0 and GObject], , [
   # if we've gotten this far, the user has specifically asked that glib2 be
   # used. if we have no glib2, that is an error.
   if test "x$HAVE_GLIB2" = "xno"; then
-    AC_MSG_ERROR(no glib2 found, try --disable-glib2)
+    AC_MSG_ERROR([no glib2 found, try --disable-glib2])
   fi
 ], enabled, [
   AC_DEFINE(USE_GLIB2)
index e5beeef..ba55821 100644 (file)
@@ -33,7 +33,7 @@ static _pthread_descr linuxthreads_self()
 pth_mctx_t main_context;
 int threadnum = 0;
 
-void cothread (void *unused)
+void cothread ()
 {
   printf ("1.%d: current stack frame: %p\n", threadnum, CURRENT_STACK_FRAME);
   printf ("1.%d: sleeping 2s...\n", threadnum);
index b775efb..e16af08 100644 (file)
 /***** Deal with XML stuff, we have to handle both loadsave and registry *****/
 
 #if (! (defined(GST_DISABLE_LOADSAVE) && defined(GST_DISABLE_REGISTRY)) )
-#ifdef HAVE_LIBXML2
-  #include <libxml/parser.h>
-#else /* impossibly broken header namespacing */
-  #include <parser.h>
-#endif
-  /* 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 <libxml/parser.h>
 #else
-  #define GST_DISABLE_LOADSAVE_REGISTRY
+define GST_DISABLE_LOADSAVE_REGISTRY
 #endif
 
 #endif /* __GST_CONFIG_H__ */