From 426e653213bb20a1b6929819dccbf5aec4263bb0 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Mon, 6 Apr 2009 17:15:19 +0000 Subject: [PATCH] defines for snprintf and strtoll for windows --- include/libtorrent/config.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/libtorrent/config.hpp b/include/libtorrent/config.hpp index fe0fab07c..5df039fc4 100644 --- a/include/libtorrent/config.hpp +++ b/include/libtorrent/config.hpp @@ -102,6 +102,8 @@ POSSIBILITY OF SUCH DAMAGE. // this is the maximum number of characters in a // path element / filename on windows #define NAME_MAX 255 +#define snprintf _snprintf_s +#define strtoll _strtoi64 #endif #if (defined(TORRENT_LOGGING) || defined(TORRENT_VERBOSE_LOGGING)) && !defined (TORRENT_UPNP_LOGGING)