From 42a683d688b0e05392eb169252232a8bf4b5a02a Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Wed, 30 Jan 2008 09:56:22 +0000 Subject: Imporoved PHP binary size and startup speed with GCC4 visibility control (Nuno) --- ext/unicode/php_unicode.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'ext/unicode/php_unicode.h') diff --git a/ext/unicode/php_unicode.h b/ext/unicode/php_unicode.h index 3fe387fb67..22769c8443 100644 --- a/ext/unicode/php_unicode.h +++ b/ext/unicode/php_unicode.h @@ -37,9 +37,11 @@ extern zend_module_entry unicode_module_entry; #define phpext_unicode_ptr &unicode_module_entry #ifdef PHP_WIN32 -#define PHP_UNICODE_API __declspec(dllexport) +# define PHP_UNICODE_API __declspec(dllexport) +#elif defined(__GNUC__) && __GNUC__ >= 4 +# define PHP_UNICODE_API __attribute__ ((visibility("default"))) #else -#define PHP_UNICODE_API +# define PHP_UNICODE_API #endif PHP_MINIT_FUNCTION(unicode); -- cgit v1.2.1