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/mbstring/mbstring.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/mbstring/mbstring.h')
| -rw-r--r-- | ext/mbstring/mbstring.h | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/ext/mbstring/mbstring.h b/ext/mbstring/mbstring.h index 63afaf5094..1393559f8e 100644 --- a/ext/mbstring/mbstring.h +++ b/ext/mbstring/mbstring.h @@ -52,17 +52,20 @@ #endif #ifdef PHP_WIN32 -# undef MBSTRING_API -# ifdef MBSTRING_EXPORTS -# define MBSTRING_API __declspec(dllexport) -# elif defined(COMPILE_DL_MBSTRING) -# define MBSTRING_API __declspec(dllimport) -# else -# define MBSTRING_API /* nothing special */ -# endif +# undef MBSTRING_API +# ifdef MBSTRING_EXPORTS +# define MBSTRING_API __declspec(dllexport) +# elif defined(COMPILE_DL_MBSTRING) +# define MBSTRING_API __declspec(dllimport) +# else +# define MBSTRING_API /* nothing special */ +# endif +#elif defined(__GNUC__) && __GNUC__ >= 4 +# undef MBSTRING_API +# define MBSTRING_API __attribute__ ((visibility("default"))) #else -# undef MBSTRING_API -# define MBSTRING_API /* nothing special */ +# undef MBSTRING_API +# define MBSTRING_API /* nothing special */ #endif |
