diff --git a/utp.h b/utp.h --- a/utp.h +++ b/utp.h @@ -4,12 +4,18 @@ #include "utypes.h" #ifdef WIN32 +#ifndef _CRT_SECURE_NO_DEPRECATE #define _CRT_SECURE_NO_DEPRECATE +#endif +#ifndef WIN32_LEAN_AND_MEAN #define WIN32_LEAN_AND_MEAN +#endif #include #include #include +#ifdef _MSC_VER #pragma comment(lib,"ws2_32.lib") +#endif #else #include #include @@ -142,7 +148,7 @@ }; // Get stats for UTP socket -void UTP_GetStats(struct UTPSocket *socket, UTPStats *stats); +void UTP_GetStats(struct UTPSocket *socket, struct UTPStats *stats); #endif // Close the UTP socket.