Improved PHP binary size and startup speed with GCC4 visibility control (Nuno)

This commit is contained in:
Dmitry Stogov 2008-01-30 09:41:12 +00:00
parent 71efa394a6
commit 240fa244c3
25 changed files with 175 additions and 86 deletions

View file

@ -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