cvs: php4 /ext/gd config.m4 gd.c
| From: | Jouni Ahto | Date: | Mon, 26 Jun 2000 15:23:52 +0000 |
| Subject: | cvs: php4 /ext/gd config.m4 gd.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-477@lists.php.net to get a copy of this message | ||
jah Mon Jun 26 08:23:52 2000 EDT
Modified files:
/php4/ext/gd config.m4 gd.c
Log:
- Fixed another missing test for existing functions in libgd.
# This too should go in 4.0.1 if just possible.
Index: php4/ext/gd/config.m4
diff -u php4/ext/gd/config.m4:1.34 php4/ext/gd/config.m4:1.35
--- php4/ext/gd/config.m4:1.34 Mon Jun 26 05:23:02 2000
+++ php4/ext/gd/config.m4 Mon Jun 26 08:23:52 2000
@@ -69,6 +69,7 @@
old_LIBS=$LIBS
AC_CHECK_LIB(gd, gdImageString16, [ AC_DEFINE(HAVE_LIBGD13,1,[ ]) ])
AC_CHECK_LIB(gd, gdImagePaletteCopy, [ AC_DEFINE(HAVE_LIBGD15,1,[ ]) ])
+ AC_CHECK_LIB(gd, gdImageColorClosestHWB, [ AC_DEFINE(HAVE_COLORCLOSESTHWB,1,[ ]) ])
AC_CHECK_LIB(z,compress, LIBS="$LIBS -lz",,)
AC_CHECK_LIB(png,png_info_init, LIBS="$LIBS -lpng",,)
AC_CHECK_LIB(gd, gdImageColorResolve, [AC_DEFINE(HAVE_GDIMAGECOLORRESOLVE,1,[ ])])
Index: php4/ext/gd/gd.c
diff -u php4/ext/gd/gd.c:1.80 php4/ext/gd/gd.c:1.81
--- php4/ext/gd/gd.c:1.80 Mon Jun 26 05:23:02 2000
+++ php4/ext/gd/gd.c Mon Jun 26 08:23:52 2000
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: gd.c,v 1.80 2000/06/26 12:23:02 jah Exp $ */
+/* $Id: gd.c,v 1.81 2000/06/26 15:23:52 jah Exp $ */
/* gd 1.2 is copyright 1994, 1995, Quest Protein Database Center,
Cold Spring Harbor Labs. */
@@ -850,7 +850,7 @@
Get the index of the color which has the hue, white and blackness nearest to the given color */
PHP_FUNCTION(imagecolorclosesthwb)
{
-#if HAVE_GDIMAGECOLORRESOLVE
+#if HAVE_COLORCLOSESTHWB
zval **imgind, **r, **g, **b;
int col;
gdImagePtr im;