]> granicus.if.org Git - php/commitdiff
php_sig_gd2 is only needed for GD extension.
authorfoobar <sniper@php.net>
Tue, 7 Aug 2001 16:35:35 +0000 (16:35 +0000)
committerfoobar <sniper@php.net>
Tue, 7 Aug 2001 16:35:35 +0000 (16:35 +0000)
ext/gd/gd.c
ext/gd/php_gd.h

index 51ac436b1fb5278aebf3b36f53f8a725d6e3cbc9..9e3b5078802621b396c7208fdd532eec2ac6e238 100644 (file)
@@ -937,6 +937,8 @@ PHP_FUNCTION(imagetypes)
 
 /* {{{ _php_image_type
  */
+static const char php_sig_gd2[3] = {'g', 'd', '2'};
+
 static int _php_image_type (char data[8])
 {
 #ifdef HAVE_LIBGD15
index 416a45b3af65e1bd816aa7892f169ec5fcd4babf..f29695831bec18ad06a7c5b5503a07a47734728b 100644 (file)
@@ -56,7 +56,6 @@
 PHPAPI extern const char php_sig_gif[3];
 PHPAPI extern const char php_sig_jpg[3];
 PHPAPI extern const char php_sig_png[3];
-PHPAPI extern const char php_sig_gd2[3] = {'g', 'd', '2'};
 
 extern zend_module_entry gd_module_entry;
 #define phpext_gd_ptr &gd_module_entry