From 4b702701b288b60af9d438891bc890114bef2b97 Mon Sep 17 00:00:00 2001 From: Steven Siloti Date: Wed, 19 Aug 2015 19:48:38 -0700 Subject: [PATCH] exclude obsolete compatibility code on msvc-14 and later --- include/libtorrent/config.hpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/include/libtorrent/config.hpp b/include/libtorrent/config.hpp index 34060f9c1..106cc9431 100644 --- a/include/libtorrent/config.hpp +++ b/include/libtorrent/config.hpp @@ -380,7 +380,7 @@ POSSIBILITY OF SUCH DAMAGE. #define TORRENT_UNUSED(x) (void)(x) -#if defined TORRENT_WINDOWS && !defined TORRENT_MINGW +#if (defined _MSC_VER && _MSC_VER < 1900) && !defined TORRENT_MINGW #include @@ -402,8 +402,6 @@ int snprintf(char* buf, int len, char const* fmt, ...) } #define strtoll _strtoi64 -#else -#include #endif // at the highest warning level, clang actually warns about functions