]> granicus.if.org Git - transmission/commitdiff
Make utp_config.h usable with MSVC (#warning directive is not standard)
authorMike Gelfand <mikedld@mikedld.com>
Sat, 13 Dec 2014 10:03:44 +0000 (10:03 +0000)
committerMike Gelfand <mikedld@mikedld.com>
Sat, 13 Dec 2014 10:03:44 +0000 (10:03 +0000)
third-party/utp_config.h

index 01d6ba07e28dd0e6d54819bcbe7666c85874f87a..aae76af2d90a72f6f05c616bfbdd7ad4f12a7f28 100644 (file)
@@ -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 {