From e9a42b6fcde3615e32e01cc837db901a366821b7 Mon Sep 17 00:00:00 2001 From: Marcos Pinto Date: Tue, 17 Jul 2007 02:24:34 +0000 Subject: [PATCH] lt 1405 sync --- libtorrent/include/libtorrent/peer_connection.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libtorrent/include/libtorrent/peer_connection.hpp b/libtorrent/include/libtorrent/peer_connection.hpp index 2c01e4dfb..d32d250fc 100755 --- a/libtorrent/include/libtorrent/peer_connection.hpp +++ b/libtorrent/include/libtorrent/peer_connection.hpp @@ -395,7 +395,7 @@ namespace libtorrent #ifndef TORRENT_DISABLE_ENCRYPTION buffer::interval wr_recv_buffer() { -#ifndef NDEBUG +#if defined _SECURE_SCL && _SECURE_SCL > 0 if (m_recv_buffer.empty()) return buffer::interval(0,0); #endif return buffer::interval(&m_recv_buffer[0] @@ -405,7 +405,7 @@ namespace libtorrent buffer::const_interval receive_buffer() const { -#ifndef NDEBUG +#if defined _SECURE_SCL && _SECURE_SCL > 0 if (m_recv_buffer.empty()) return buffer::const_interval(0,0); #endif return buffer::const_interval(&m_recv_buffer[0]