Re: PHP 4.1.2 & Gd2
| From: | Richard Archer | Date: | Tue, 19 Mar 2002 21:53:40 +0000 |
| Subject: | Re: PHP 4.1.2 & Gd2 | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-89221@lists.php.net to get a copy of this message | ||
At 10:47 PM +0100 19/3/02, Jeroen Geusebroek wrote:
>I'm trying to install GD2 in PHP, and can't get it compiled. It keeps
>saying:
>
>In file included from gd.c:36:
>php_gd.h:69: warning: static declaration for `gdImageColorResolve'
The following patch fixed it for me:
diff -r -U3 php-4.1.2/ext/gd/php_gd.h php-4.1.2.gd/ext/gd/php_gd.h
--- php-4.1.2/ext/gd/php_gd.h Sat Aug 25 06:07:07 2001
+++ php-4.1.2.gd/ext/gd/php_gd.h Thu Feb 28 15:03:02 2002
@@ -66,7 +66,7 @@
PHP_MSHUTDOWN_FUNCTION(gd);
#ifndef HAVE_GDIMAGECOLORRESOLVE
-static int gdImageColorResolve(gdImagePtr, int, int, int);
+extern int gdImageColorResolve(gdImagePtr, int, int, int);
#endif
PHP_FUNCTION(imagearc);
PHP_FUNCTION(imagechar);
...R.