From aa0b500ae51071a7e8af272026191d92e9d4c042 Mon Sep 17 00:00:00 2001 From: Mike Gelfand Date: Sat, 13 Dec 2014 10:03:44 +0000 Subject: [PATCH] Make utp_config.h usable with MSVC (#warning directive is not standard) --- third-party/utp_config.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/third-party/utp_config.h b/third-party/utp_config.h index 01d6ba07e..aae76af2d 100644 --- a/third-party/utp_config.h +++ b/third-party/utp_config.h @@ -5,7 +5,12 @@ // This should return the global number of bytes sent, used for determining dynamic // packet size based on rate +#ifdef _MSC_VER +#pragma warning() +#pragma message(implement this in libtransmission) +#else #warning implement this in libtransmission +#endif uint64 UTP_GetGlobalUTPBytesSent(const struct sockaddr *remote, socklen_t remotelen) { return 0; } enum bandwidth_type_t {