forked from premiere/premiere-libtorrent
fixed _SECURE_SCL issue with msvc8
This commit is contained in:
parent
32f1dbf7a6
commit
5ae2e83af6
|
@ -395,7 +395,7 @@ namespace libtorrent
|
||||||
#ifndef TORRENT_DISABLE_ENCRYPTION
|
#ifndef TORRENT_DISABLE_ENCRYPTION
|
||||||
buffer::interval wr_recv_buffer()
|
buffer::interval wr_recv_buffer()
|
||||||
{
|
{
|
||||||
#ifndef NDEBUG
|
#if defined _SECURE_SCL && _SECURE_SCL > 0
|
||||||
if (m_recv_buffer.empty()) return buffer::interval(0,0);
|
if (m_recv_buffer.empty()) return buffer::interval(0,0);
|
||||||
#endif
|
#endif
|
||||||
return buffer::interval(&m_recv_buffer[0]
|
return buffer::interval(&m_recv_buffer[0]
|
||||||
|
@ -405,7 +405,7 @@ namespace libtorrent
|
||||||
|
|
||||||
buffer::const_interval receive_buffer() const
|
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);
|
if (m_recv_buffer.empty()) return buffer::const_interval(0,0);
|
||||||
#endif
|
#endif
|
||||||
return buffer::const_interval(&m_recv_buffer[0]
|
return buffer::const_interval(&m_recv_buffer[0]
|
||||||
|
|
Loading…
Reference in New Issue