diff options
| author | Dmitry Stogov <dmitry@php.net> | 2008-01-30 09:56:22 +0000 |
|---|---|---|
| committer | Dmitry Stogov <dmitry@php.net> | 2008-01-30 09:56:22 +0000 |
| commit | 42a683d688b0e05392eb169252232a8bf4b5a02a (patch) | |
| tree | 14066ce6bb8ed13f624d6f8190e8e4feb3a307dd /ext/libxml/php_libxml.h | |
| parent | d48c9d1a185292c3aacb7d13b12cb011d7ef2954 (diff) | |
| download | php-git-42a683d688b0e05392eb169252232a8bf4b5a02a.tar.gz | |
Imporoved PHP binary size and startup speed with GCC4 visibility control (Nuno)
Diffstat (limited to 'ext/libxml/php_libxml.h')
| -rw-r--r-- | ext/libxml/php_libxml.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ext/libxml/php_libxml.h b/ext/libxml/php_libxml.h index 8503d85b22..17aa7c5cb5 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" |
