summaryrefslogtreecommitdiff
path: root/ext/domxml/php_domxml.h
diff options
context:
space:
mode:
authorfoobar <sniper@php.net>2000-12-09 03:19:46 +0000
committerfoobar <sniper@php.net>2000-12-09 03:19:46 +0000
commit98349a94088fe3c11f31e7257279c5f0c59275b2 (patch)
tree391812d2a993e6401a3128e11021ba199104365b /ext/domxml/php_domxml.h
parente01ce716a36aa0f039afe50f791af5e36933d921 (diff)
downloadphp-git-98349a94088fe3c11f31e7257279c5f0c59275b2.tar.gz
Removed unused variable definitions. And libxml can be build NOT
to have support for either XPath or XPtr.
Diffstat (limited to 'ext/domxml/php_domxml.h')
-rw-r--r--ext/domxml/php_domxml.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/domxml/php_domxml.h b/ext/domxml/php_domxml.h
index cea1184fa1..106863eae4 100644
--- a/ext/domxml/php_domxml.h
+++ b/ext/domxml/php_domxml.h
@@ -23,7 +23,9 @@
#if HAVE_DOMXML
#include <libxml/parser.h>
+#if defined(LIBXML_XPATH_ENABLED)
#include <libxml/xpath.h>
+#endif
#if defined(LIBXML_XPTR_ENABLED)
#include <libxml/xpointer.h>
#endif
@@ -60,10 +62,12 @@ PHP_FUNCTION(domxml_set_content);
PHP_FUNCTION(domxml_attrname);
/* Class XPathContext methods */
+#if defined(LIBXML_XPATH_ENABLED)
PHP_FUNCTION(xpath_init);
PHP_FUNCTION(xpath_new_context);
PHP_FUNCTION(xpath_eval);
PHP_FUNCTION(xpath_eval_expression);
+#endif
#if defined(LIBXML_XPTR_ENABLED)
PHP_FUNCTION(xptr_new_context);
PHP_FUNCTION(xptr_eval);