old api support for imagick module?
| From: | Alan Knowles | Date: | Sun, 06 Oct 2002 13:47:48 +0000 |
| Subject: | old api support for imagick module? | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-9881@lists.php.net to get a copy of this message | ||
Just built the imagick module with pre 5.4.5 and noticed that
QueryColorDatabase(Z_STRVAL_PP(entry),&drawinfo->fill);had changed to QueryColorDatabase(Z_STRVAL_PP(entry),&drawinfo->fill,exception); is it possible to wrap something like this (mainly as debian woody is bundled with the old imagick) #ifdef IMAGICK_VERSION ???? <= ???? #define IMAGICK_BC_QueryColorDatabase(a,b,c) QueryColorDatabase(a,b,c); #else #define IMAGICK_BC_QueryColorDatabase(a,b,c) QueryColorDatabase(a,b); #endif Regards Alan