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.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to