]> granicus.if.org Git - php/commitdiff
- merge: #49464, fix build
authorPierre Joye <pajoye@php.net>
Fri, 9 Oct 2009 14:22:29 +0000 (14:22 +0000)
committerPierre Joye <pajoye@php.net>
Fri, 9 Oct 2009 14:22:29 +0000 (14:22 +0000)
ext/sockets/php_sockets.h
ext/sockets/sockets.c

index 23e350c31545bce75323bed10c99931921986506..3738ed46c6146d95ed1293e883226c488bedb76d 100644 (file)
@@ -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 */
index 3d32b712ccf9459905eb97c269a8e5b4ef0cdce9..0b635f399c5cb4fcb6dfb9aa4b33c880fd9be760 100644 (file)
@@ -323,7 +323,7 @@ ZEND_GET_MODULE(sockets)
 /* inet_ntop should be used instead of inet_ntoa */
 int inet_ntoa_lock = 0;
 
-PHPAPI int php_sockets_le_socket(void) /* {{{ */
+PHP_SOCKETS_API int php_sockets_le_socket(void) /* {{{ */
 {
        return le_socket;
 }