summaryrefslogtreecommitdiff
path: root/ext/xml/php_xml.h
diff options
context:
space:
mode:
Diffstat (limited to 'ext/xml/php_xml.h')
-rw-r--r--ext/xml/php_xml.h10
1 files changed, 3 insertions, 7 deletions
diff --git a/ext/xml/php_xml.h b/ext/xml/php_xml.h
index 7fef7c6070..ca77d3d224 100644
--- a/ext/xml/php_xml.h
+++ b/ext/xml/php_xml.h
@@ -22,20 +22,16 @@
#ifndef PHP_XML_H
#define PHP_XML_H
-#ifdef HAVE_LIBEXPAT
-
+#ifdef HAVE_XML
extern zend_module_entry xml_module_entry;
#define xml_module_ptr &xml_module_entry
-
#else
-
#define xml_module_ptr NULL
-
#endif
-#if defined(PHP_XML_INTERNAL)
+#ifdef HAVE_XML
-#include <expat.h>
+#include "ext/xml/expat_compat.h"
#ifdef PHP_WIN32
#define PHP_XML_API __declspec(dllexport)