diff options
Diffstat (limited to 'ext/hash/php_hash.h')
-rw-r--r-- | ext/hash/php_hash.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ext/hash/php_hash.h b/ext/hash/php_hash.h index e2309201f9..0f660c785a 100644 --- a/ext/hash/php_hash.h +++ b/ext/hash/php_hash.h @@ -100,9 +100,11 @@ extern zend_module_entry hash_module_entry; #define phpext_hash_ptr &hash_module_entry #ifdef PHP_WIN32 -#define PHP_HASH_API __declspec(dllexport) +# define PHP_HASH_API __declspec(dllexport) +#elif defined(__GNUC__) && __GNUC__ >= 4 +# define PHP_HASH_API __attribute__ ((visibility("default"))) #else -#define PHP_HASH_API +# define PHP_HASH_API #endif #ifdef ZTS |