source: trunk/third-party/utp-02-win32.patch

Last change on this file was 14598, checked in by mikedld, 3 years ago

Add the rest of current Windows-related third-party patches

File size: 678 bytes
  • utp.h

    diff --git a/utp.h b/utp.h
    a b  
    44#include "utypes.h"
    55
    66#ifdef WIN32
     7#ifndef _CRT_SECURE_NO_DEPRECATE
    78#define _CRT_SECURE_NO_DEPRECATE
     9#endif
     10#ifndef WIN32_LEAN_AND_MEAN
    811#define WIN32_LEAN_AND_MEAN
     12#endif
    913#include <windows.h>
    1014#include <winsock2.h>
    1115#include <ws2tcpip.h>
     16#ifdef _MSC_VER
    1217#pragma comment(lib,"ws2_32.lib")
     18#endif
    1319#else
    1420#include <stdlib.h>
    1521#include <sys/types.h>
     
    142148};
    143149
    144150// Get stats for UTP socket
    145 void UTP_GetStats(struct UTPSocket *socket, UTPStats *stats);
     151void UTP_GetStats(struct UTPSocket *socket, struct UTPStats *stats);
    146152#endif
    147153
    148154// Close the UTP socket.
Note: See TracBrowser for help on using the repository browser.