From e583cd31e77b73ff9771082eedca7bd7a120cf02 Mon Sep 17 00:00:00 2001 From: Marcus Boerger Date: Mon, 5 Jun 2006 12:20:08 +0000 Subject: [PATCH] - Make this compatible with 5.0/1 again --- ext/xmlwriter/php_xmlwriter.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ext/xmlwriter/php_xmlwriter.c b/ext/xmlwriter/php_xmlwriter.c index e0bf8a614e..07b66e1228 100644 --- a/ext/xmlwriter/php_xmlwriter.c +++ b/ext/xmlwriter/php_xmlwriter.c @@ -174,6 +174,10 @@ static zend_function_entry xmlwriter_functions[] = { /* }}} */ #ifdef ZEND_ENGINE_2 +#if (PHP_MINOR_VERSION < 2) && (PHP_MAJOR_VERSION == 5) +#undef PHP_ME_MAPPING +#define PHP_ME_MAPPING(name, func_name, arg_types, flags) ZEND_ME_MAPPING(name, func_name, arg_types) +#endif /* {{{ xmlwriter_class_functions */ static zend_function_entry xmlwriter_class_functions[] = { PHP_ME_MAPPING(openUri, xmlwriter_open_uri, NULL, 0) -- 2.40.0