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 /main/php.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 'main/php.h')
| -rw-r--r-- | main/php.h | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/main/php.h b/main/php.h index 4c83fead03..d4f0199e55 100644 --- a/main/php.h +++ b/main/php.h @@ -45,17 +45,22 @@ #define PHP_DEBUG ZEND_DEBUG #ifdef PHP_WIN32 -#include "tsrm_win32.h" -#include "win95nt.h" +# include "tsrm_win32.h" +# include "win95nt.h" # ifdef PHP_EXPORTS -# define PHPAPI __declspec(dllexport) +# define PHPAPI __declspec(dllexport) # else -# define PHPAPI __declspec(dllimport) +# define PHPAPI __declspec(dllimport) # endif -#define PHP_DIR_SEPARATOR '\\' -#define PHP_EOL "\r\n" +# define PHP_DIR_SEPARATOR '\\' +# define PHP_EOL "\r\n" #else -#define PHPAPI +# if defined(__GNUC__) && __GNUC__ >= 4 +# define PHPAPI __attribute__ ((visibility("default"))) +# else +# define PHPAPI +# endif + #define THREAD_LS #define PHP_DIR_SEPARATOR '/' #if defined(__MacOSX__) |
