diff options
author | Johannes Schlüter <johannes@php.net> | 2012-05-25 00:22:25 +0200 |
---|---|---|
committer | Johannes Schlüter <johannes@php.net> | 2012-05-25 00:22:25 +0200 |
commit | 8fc9df3f67dc35bff019f538934322583fd5fefd (patch) | |
tree | 6f83b92c64f85b3ea3fb4f346d46578d65fae055 /ext/com_dotnet/php_com_dotnet.h | |
parent | cfea8e5d04168d296d75dec21f8f0f920f563f00 (diff) | |
download | php-git-8fc9df3f67dc35bff019f538934322583fd5fefd.tar.gz |
Fix bug #62146 com_dotnet cannot be built shared, tested by Anatoliy
Diffstat (limited to 'ext/com_dotnet/php_com_dotnet.h')
-rw-r--r-- | ext/com_dotnet/php_com_dotnet.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ext/com_dotnet/php_com_dotnet.h b/ext/com_dotnet/php_com_dotnet.h index ddcd38132e..96ea21ae6a 100644 --- a/ext/com_dotnet/php_com_dotnet.h +++ b/ext/com_dotnet/php_com_dotnet.h @@ -28,6 +28,14 @@ extern zend_module_entry com_dotnet_module_entry; #include "TSRM.h" #endif +#ifdef PHP_WIN32 +# define PHP_COM_DOTNET_API __declspec(dllexport) +#elif defined(__GNUC__) && __GNUC__ >= 4 +# define PHP_COM_DOTNET_API __attribute__ ((visibility("default"))) +#else +# define PHP_COM_DOTNET_API +#endif + PHP_MINIT_FUNCTION(com_dotnet); PHP_MSHUTDOWN_FUNCTION(com_dotnet); PHP_RINIT_FUNCTION(com_dotnet); |