summaryrefslogtreecommitdiff
path: root/ext/spl/php_spl.h
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 /ext/spl/php_spl.h
parent71efa394a6e17fa2552ccbbf454bb0f33429a8b2 (diff)
downloadphp-git-240fa244c345141b13485713f16525c169ffa49a.tar.gz
Improved PHP binary size and startup speed with GCC4 visibility control (Nuno)
Diffstat (limited to 'ext/spl/php_spl.h')
-rwxr-xr-xext/spl/php_spl.h18
1 files changed, 10 insertions, 8 deletions
diff --git a/ext/spl/php_spl.h b/ext/spl/php_spl.h
index 75ec338285..baf2d9115f 100755
--- a/ext/spl/php_spl.h
+++ b/ext/spl/php_spl.h
@@ -32,15 +32,17 @@ extern zend_module_entry spl_module_entry;
#define phpext_spl_ptr &spl_module_entry
#ifdef PHP_WIN32
-# ifdef SPL_EXPORTS
-# define SPL_API __declspec(dllexport)
-# elif defined(COMPILE_DL_SPL)
-# define SPL_API __declspec(dllimport)
-# else
-# define SPL_API /* nothing */
-# endif
+# ifdef SPL_EXPORTS
+# define SPL_API __declspec(dllexport)
+# elif defined(COMPILE_DL_SPL)
+# define SPL_API __declspec(dllimport)
+# else
+# define SPL_API /* nothing */
+# endif
+#elif defined(__GNUC__) && __GNUC__ >= 4
+# define SPL_API __attribute__ ((visibility("default")))
#else
-# define SPL_API
+# define SPL_API
#endif
#if defined(PHP_WIN32) && !defined(COMPILE_DL_SPL)