From: Mike Gelfand Date: Sat, 13 Dec 2014 10:03:44 +0000 (+0000) Subject: Make utp_config.h usable with MSVC (#warning directive is not standard) X-Git-Tag: 2.90~311 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=aa0b500ae51071a7e8af272026191d92e9d4c042;p=transmission Make utp_config.h usable with MSVC (#warning directive is not standard) --- 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 {