summaryrefslogtreecommitdiff
path: root/sapi/apache_hooks
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@php.net>2008-01-30 09:41:12 +0000
committerDmitry Stogov <dmitry@php.net>2008-01-30 09:41:12 +0000
commit240fa244c345141b13485713f16525c169ffa49a (patch)
tree0addb4de1f48312bcac53d8f8d7863ff0fdf325f /sapi/apache_hooks
parent71efa394a6e17fa2552ccbbf454bb0f33429a8b2 (diff)
downloadphp-git-240fa244c345141b13485713f16525c169ffa49a.tar.gz
Improved PHP binary size and startup speed with GCC4 visibility control (Nuno)
Diffstat (limited to 'sapi/apache_hooks')
-rw-r--r--sapi/apache_hooks/mod_php5.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/sapi/apache_hooks/mod_php5.h b/sapi/apache_hooks/mod_php5.h
index 0d61bf8982..1549dbf263 100644
--- a/sapi/apache_hooks/mod_php5.h
+++ b/sapi/apache_hooks/mod_php5.h
@@ -71,6 +71,13 @@ extern php_apache_info_struct php_apache_info;
#define AP_LOGGING 10
#define AP_CLEANUP 11
+
+/* fix for gcc4 visibility patch */
+#ifndef PHP_WIN32
+# undef MODULE_VAR_EXPORT
+# define MODULE_VAR_EXPORT PHPAPI
+#endif
+
#endif /* MOD_PHP5_H */
/*