#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 {
};
#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 */
/* 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;
}