Skip to content

Commit a92947b

Browse files
devnexenDavid Carlier
authored andcommitted
gcc's case
1 parent eb20fc6 commit a92947b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ext/openssl/php_openssl.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ extern zend_module_entry openssl_module_entry;
6868

6969
#ifdef PHP_WIN32
7070
# define PHP_OPENSSL_API __declspec(dllexport)
71+
#elif defined(__GNUC__) && __GNUC__ >= 4
72+
# define PHP_OPENSSL_API __attribute__((visibility("default")))
7173
#else
7274
# define PHP_OPENSSL_API
7375
#endif
@@ -95,7 +97,7 @@ void php_openssl_store_errors();
9597
PHP_OPENSSL_API int php_openssl_cipher_iv_length(char *, zend_long *);
9698
PHP_OPENSSL_API int php_openssl_random_pseudo_bytes(zend_string **, zend_long);
9799
PHP_OPENSSL_API int php_openssl_encrypt(char *, size_t, char *, size_t, char *, size_t, zend_long, char *, size_t, zval *, zend_long, char *, size_t, zend_string **);
98-
PHPAPI int php_openssl_decrypt(char *, size_t, char *, size_t, char *, size_t, zend_long, char *, size_t, char *, zend_long, char *, size_t, zend_string **);
100+
PHP_OPENSSL_API int php_openssl_decrypt(char *, size_t, char *, size_t, char *, size_t, zend_long, char *, size_t, char *, zend_long, char *, size_t, zend_string **);
99101

100102
PHP_MINIT_FUNCTION(openssl);
101103
PHP_MSHUTDOWN_FUNCTION(openssl);

0 commit comments

Comments
 (0)