diff options
author | Pierre Joye <pajoye@php.net> | 2009-09-04 19:53:39 +0000 |
---|---|---|
committer | Pierre Joye <pajoye@php.net> | 2009-09-04 19:53:39 +0000 |
commit | a2cffa259040778caf100fb7e487673ac4836237 (patch) | |
tree | fc3a787014696b3256f265387c527af963693e1b /ext/sockets/php_sockets.h | |
parent | 4361f2370a507d24318e3b87060051f21f468493 (diff) | |
download | php-git-a2cffa259040778caf100fb7e487673ac4836237.tar.gz |
- #49464, fix build
Diffstat (limited to 'ext/sockets/php_sockets.h')
-rw-r--r-- | ext/sockets/php_sockets.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/sockets/php_sockets.h b/ext/sockets/php_sockets.h index 23e350c315..3738ed46c6 100644 --- a/ext/sockets/php_sockets.h +++ b/ext/sockets/php_sockets.h @@ -73,7 +73,9 @@ PHP_FUNCTION(socket_clear_error); #ifndef PHP_WIN32 typedef int PHP_SOCKET; +# define PHP_SOCKETS_API PHPAPI #else +# define PHP_SOCKETS_API __declspec(dllexport) typedef SOCKET PHP_SOCKET; #endif @@ -91,7 +93,7 @@ struct sockaddr_un { }; #endif -PHPAPI int php_sockets_le_socket(void); +PHP_SOCKETS_API int php_sockets_le_socket(void); /* Prototypes */ #ifdef ilia_0 /* not needed, only causes a compiler warning */ |