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/pdo/php_pdo.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/pdo/php_pdo.h')
-rwxr-xr-x | ext/pdo/php_pdo.h | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/ext/pdo/php_pdo.h b/ext/pdo/php_pdo.h index fa83596e48..b2e1468949 100755 --- a/ext/pdo/php_pdo.h +++ b/ext/pdo/php_pdo.h @@ -31,15 +31,17 @@ extern zend_module_entry pdo_module_entry; #define phpext_pdo_ptr &pdo_module_entry #ifdef PHP_WIN32 -# if defined(PDO_EXPORTS) || (!defined(COMPILE_DL_PDO)) -# define PDO_API __declspec(dllexport) -# elif defined(COMPILE_DL_PDO) -# define PDO_API __declspec(dllimport) -# else -# define PDO_API /* nothing special */ -# endif +# if defined(PDO_EXPORTS) || (!defined(COMPILE_DL_PDO)) +# define PDO_API __declspec(dllexport) +# elif defined(COMPILE_DL_PDO) +# define PDO_API __declspec(dllimport) +# else +# define PDO_API /* nothing special */ +# endif +#elif defined(__GNUC__) && __GNUC__ >= 4 +# define PDO_API __attribute__ ((visibility("default"))) #else -# define PDO_API /* nothing special */ +# define PDO_API /* nothing special */ #endif #ifdef ZTS |