diff options
Diffstat (limited to 'ext/gd/php_gd.h')
| -rw-r--r-- | ext/gd/php_gd.h | 13 |
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 |
