This allows static builds under win32 despite the fact that tidyOptGetDoc() doesn't exist in the libtidy.lib we're linking against.

It needs applying to php_tidy.def everywhere libtidy v 2 is used - that is, ext/tidy in CVS HEAD and PHP_5_1, and CVS HEAD pecl/tidy.

In all three cases there is the same #ifdef clause for the matching tidy_get_opt_doc() function in the header file.

- Steph
Index: ext/tidy/php_tidy.def
===================================================================
RCS file: /repository/php-src/ext/tidy/php_tidy.def,v
retrieving revision 1.2
diff -u -r1.2 php_tidy.def
--- ext/tidy/php_tidy.def       25 Apr 2005 20:46:16 -0000      1.2
+++ ext/tidy/php_tidy.def       19 Apr 2006 10:22:45 -0000
@@ -45,7 +45,9 @@
tidyOptGetDefault
tidyOptGetDefaultInt
tidyOptGetDefaultBool
+#if HAVE_TIDYOPTGETDOC
tidyOptGetDoc
+#endif
tidyOptGetPickList
tidyOptGetNextPick
tidyOptGetValue

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to