boost 1.35 fixes

This commit is contained in:
Arvid Norberg 2009-06-19 16:42:33 +00:00
parent d5fc3ea422
commit 306b75e6b1
2 changed files with 11 additions and 3 deletions

View File

@ -1450,7 +1450,10 @@ namespace libtorrent
if (j.buffer == 0)
{
ret = -1;
#if BOOST_VERSION >= 103500
#if BOOST_VERSION == 103500
j.error = error_code(boost::system::posix_error::not_enough_memory
, get_posix_category());
#elif BOOST_VERSION > 103500
j.error = error_code(boost::system::errc::not_enough_memory
, get_posix_category());
#else
@ -1510,7 +1513,10 @@ namespace libtorrent
if (j.buffer == 0)
{
ret = -1;
#if BOOST_VERSION >= 103500
#if BOOST_VERSION == 103500
j.error = error_code(boost::system::posix_error::not_enough_memory
, get_posix_category());
#elif BOOST_VERSION > 103500
j.error = error_code(boost::system::errc::not_enough_memory
, get_posix_category());
#else

View File

@ -395,7 +395,9 @@ namespace libtorrent
}
if (j.error ==
#if BOOST_VERSION >= 103500
#if BOOST_VERSION == 103500
error_code(boost::system::posix_error::not_enough_memory, get_posix_category())
#elif BOOST_VERSION > 103500
error_code(boost::system::errc::not_enough_memory, get_posix_category())
#else
asio::error::no_memory