summaryrefslogtreecommitdiff
path: root/ext/gd/php_gd.h
diff options
context:
space:
mode:
authorDaniel Beulshausen <dbeu@php.net>2001-02-20 18:00:44 +0000
committerDaniel Beulshausen <dbeu@php.net>2001-02-20 18:00:44 +0000
commit721d59948e45124b624fa3bfc827bff1d57e1fb9 (patch)
treeb0d9c4e91c58a0777bbde550f61194c1ed801dfb /ext/gd/php_gd.h
parent57ce23e3cbc692db6ba5b00b638e0651c330695a (diff)
downloadphp-git-721d59948e45124b624fa3bfc827bff1d57e1fb9.tar.gz
make gd work again under win32
Diffstat (limited to 'ext/gd/php_gd.h')
-rw-r--r--ext/gd/php_gd.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/ext/gd/php_gd.h b/ext/gd/php_gd.h
index 75afd788ea..4f068c69a1 100644
--- a/ext/gd/php_gd.h
+++ b/ext/gd/php_gd.h
@@ -43,9 +43,16 @@
#define PHP_GDIMG_TYPE_XBM 5
#define PHP_GDIMG_TYPE_XPM 6
-extern const char php_sig_gif[3];
-extern const char php_sig_jpg[3];
-extern const char php_sig_png[3];
+#ifdef PHP_WIN32
+#define PHP_GD_API __declspec(dllexport)
+#else
+#define PHP_GD_API
+#endif
+
+
+PHPAPI extern const char php_sig_gif[3];
+PHPAPI extern const char php_sig_jpg[3];
+PHPAPI extern const char php_sig_png[3];
extern zend_module_entry gd_module_entry;
#define phpext_gd_ptr &gd_module_entry