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
|
@ -42,7 +42,11 @@ extern zend_module_entry pgsql_module_entry;
|
|||
#endif
|
||||
#else
|
||||
#include <libpq/libpq-fs.h>
|
||||
#define PHP_PGSQL_API /* nothing special */
|
||||
# if defined(__GNUC__) && __GNUC__ >= 4
|
||||
# define PHP_PGSQL_API __attribute__ ((visibility("default")))
|
||||
# else
|
||||
# define PHP_PGSQL_API
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_PG_CONFIG_H
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue