diff options
Diffstat (limited to 'ext/gd/php_gd.h')
-rw-r--r-- | ext/gd/php_gd.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ext/gd/php_gd.h b/ext/gd/php_gd.h index e4b5ad2ce4..382a53cfce 100644 --- a/ext/gd/php_gd.h +++ b/ext/gd/php_gd.h @@ -51,9 +51,11 @@ #define PHP_GDIMG_TYPE_GD2PART 10 #ifdef PHP_WIN32 -#define PHP_GD_API __declspec(dllexport) +# define PHP_GD_API __declspec(dllexport) +#elif defined(__GNUC__) && __GNUC__ >= 4 +# define PHP_GD_API __attribute__ ((visibility("default"))) #else -#define PHP_GD_API +# define PHP_GD_API #endif PHPAPI extern const char php_sig_gif[3]; |