From 240fa244c345141b13485713f16525c169ffa49a Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Wed, 30 Jan 2008 09:41:12 +0000 Subject: Improved PHP binary size and startup speed with GCC4 visibility control (Nuno) --- ext/libxml/php_libxml.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'ext/libxml/php_libxml.h') diff --git a/ext/libxml/php_libxml.h b/ext/libxml/php_libxml.h index 468c088fe1..27729162dc 100644 --- a/ext/libxml/php_libxml.h +++ b/ext/libxml/php_libxml.h @@ -27,9 +27,11 @@ extern zend_module_entry libxml_module_entry; #define libxml_module_ptr &libxml_module_entry #ifdef PHP_WIN32 -#define PHP_LIBXML_API __declspec(dllexport) +# define PHP_LIBXML_API __declspec(dllexport) +#elif defined(__GNUC__) && __GNUC__ >= 4 +# define PHP_LIBXML_API __attribute__ ((visibility("default"))) #else -#define PHP_LIBXML_API +# define PHP_LIBXML_API #endif #include "ext/standard/php_smart_str.h" -- cgit v1.2.1