libxml2 r3796 - trunk



Author: veillard
Date: Thu Sep 25 15:36:43 2008
New Revision: 3796
URL: http://svn.gnome.org/viewvc/libxml2?rev=3796&view=rev

Log:
* runxmlconf.c: fix compilation if XPath is not included
Daniel


Modified:
   trunk/ChangeLog
   trunk/runxmlconf.c

Modified: trunk/runxmlconf.c
==============================================================================
--- trunk/runxmlconf.c	(original)
+++ trunk/runxmlconf.c	Thu Sep 25 15:36:43 2008
@@ -12,6 +12,8 @@
 #include <stdio.h>
 #endif
 
+#ifdef LIBXML_XPATH_ENABLED
+
 #if !defined(_WIN32) || defined(__CYGWIN__)
 #include <unistd.h>
 #endif
@@ -605,3 +607,11 @@
         fclose(logfile);
     return(ret);
 }
+
+#else /* ! LIBXML_XPATH_ENABLED */
+#include <stdio.h>
+int
+main(int argc, char **argv) {
+    fprintf(stderr, "%s need XPath support\n", argv[0]);
+}
+#endif



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]