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 /main/SAPI.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 'main/SAPI.h')
-rw-r--r-- | main/SAPI.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/main/SAPI.h b/main/SAPI.h index e3d7279785..39a9a85b26 100644 --- a/main/SAPI.h +++ b/main/SAPI.h @@ -35,12 +35,14 @@ #ifdef PHP_WIN32 # ifdef SAPI_EXPORTS -# define SAPI_API __declspec(dllexport) +# define SAPI_API __declspec(dllexport) # else -# define SAPI_API __declspec(dllimport) +# define SAPI_API __declspec(dllimport) # endif +#elif defined(__GNUC__) && __GNUC__ >= 4 +# define SAPI_API __attribute__ ((visibility("default"))) #else -#define SAPI_API +# define SAPI_API #endif #undef shutdown |