From 240fa244c345141b13485713f16525c169ffa49a Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Wed, 30 Jan 2008 09:41:12 +0000 Subject: Improved PHP binary size and startup speed with GCC4 visibility control (Nuno) --- sapi/apache2handler/php_apache.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'sapi/apache2handler/php_apache.h') diff --git a/sapi/apache2handler/php_apache.h b/sapi/apache2handler/php_apache.h index 3d41439170..af9da3a230 100644 --- a/sapi/apache2handler/php_apache.h +++ b/sapi/apache2handler/php_apache.h @@ -82,5 +82,10 @@ extern php_apache2_info_struct php_apache2_info; #define AP2(v) (php_apache2_info.v) #endif +/* fix for gcc4 visibility patch */ +#ifndef PHP_WIN32 +# undef AP_MODULE_DECLARE_DATA +# define AP_MODULE_DECLARE_DATA PHPAPI +#endif #endif /* PHP_APACHE_H */ -- cgit v1.2.1