]> granicus.if.org Git - php/commitdiff
- #49464, fix build
authorPierre Joye <pajoye@php.net>
Fri, 4 Sep 2009 19:53:39 +0000 (19:53 +0000)
committerPierre Joye <pajoye@php.net>
Fri, 4 Sep 2009 19:53:39 +0000 (19:53 +0000)
ext/sockets/php_sockets.h
ext/sockets/sockets.c

index 9dbecb8274266725e5a508bbe93a65ef3060db89..edaf4e6078b8b9502485a63863fd93e526b1c8b0 100644 (file)
@@ -73,8 +73,10 @@ PHP_FUNCTION(socket_clear_error);
 
 #ifndef PHP_WIN32
 typedef int PHP_SOCKET;
+# define PHP_SOCKETS_API __declspec(dllexport)
 #else
 typedef SOCKET PHP_SOCKET;
+# define PHP_SOCKETS_API PHPAPI
 #endif
 
 typedef struct {
@@ -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 4a1b9be2f1d5d1976c4abb84376315eb4c6b9663..337571181a6598e006144b5fb0afc45ea177004e 100644 (file)
@@ -323,7 +323,8 @@ 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;
 }