summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
Diffstat (limited to 'ext')
-rw-r--r--ext/gd/gd.c2
-rw-r--r--ext/gd/php_gd.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/ext/gd/gd.c b/ext/gd/gd.c
index 51ac436b1f..9e3b507880 100644
--- a/ext/gd/gd.c
+++ b/ext/gd/gd.c
@@ -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
diff --git a/ext/gd/php_gd.h b/ext/gd/php_gd.h
index 416a45b3af..f29695831b 100644
--- a/ext/gd/php_gd.h
+++ b/ext/gd/php_gd.h
@@ -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