mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Improved PHP binary size and startup speed with GCC4 visibility control (Nuno)
This commit is contained in:
parent
71efa394a6
commit
240fa244c3
25 changed files with 175 additions and 86 deletions
19
main/php.h
19
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__)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue