diff options
author | Dmitry Stogov <dmitry@php.net> | 2008-01-30 09:41:12 +0000 |
---|---|---|
committer | Dmitry Stogov <dmitry@php.net> | 2008-01-30 09:41:12 +0000 |
commit | 240fa244c345141b13485713f16525c169ffa49a (patch) | |
tree | 0addb4de1f48312bcac53d8f8d7863ff0fdf325f /ext/gd/php_gd.h | |
parent | 71efa394a6e17fa2552ccbbf454bb0f33429a8b2 (diff) | |
download | php-git-240fa244c345141b13485713f16525c169ffa49a.tar.gz |
Improved PHP binary size and startup speed with GCC4 visibility control (Nuno)
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]; |