windows: Use WINAPI call convention for Windows API callbacks
[strongswan.git] / src / libcharon / plugins / socket_win / socket_win_socket.c
index 2cd951d..cf7a2ce 100644 (file)
@@ -75,14 +75,14 @@ struct private_socket_win_socket_t {
        /**
         * WSASendMsg function
         */
-       int (*WSASendMsg)(SOCKET, LPWSAMSG, DWORD, LPDWORD,
-                                         LPWSAOVERLAPPED, LPWSAOVERLAPPED_COMPLETION_ROUTINE);
+       int WINAPI (*WSASendMsg)(SOCKET, LPWSAMSG, DWORD, LPDWORD,
+                                       LPWSAOVERLAPPED, LPWSAOVERLAPPED_COMPLETION_ROUTINE);
 
        /**
         * WSARecvMsg function
         */
-       int (*WSARecvMsg)(SOCKET, LPWSAMSG, LPDWORD,
-                                         LPWSAOVERLAPPED, LPWSAOVERLAPPED_COMPLETION_ROUTINE);
+       int WINAPI (*WSARecvMsg)(SOCKET, LPWSAMSG, LPDWORD,
+                                       LPWSAOVERLAPPED, LPWSAOVERLAPPED_COMPLETION_ROUTINE);
 };
 
 METHOD(socket_t, receiver, status_t,