makes it build with logging

This commit is contained in:
Arvid Norberg 2005-11-02 20:59:36 +00:00
parent d7b1dda483
commit c71a5a9435
2 changed files with 5 additions and 2 deletions

View File

@ -43,6 +43,10 @@ POSSIBILITY OF SUCH DAMAGE.
# define TORRENT_EXPORT # define TORRENT_EXPORT
# endif # endif
#elif defined(__GNUC__)
# define TORRENT_EXPORT
#elif defined(BOOST_MSVC) #elif defined(BOOST_MSVC)
# if defined(TORRENT_BUILDING_SHARED) # if defined(TORRENT_BUILDING_SHARED)

View File

@ -884,8 +884,7 @@ namespace libtorrent { namespace detail
, "connection attempt failed")); , "connection attempt failed"));
#if defined(TORRENT_VERBOSE_LOGGING) || defined(TORRENT_LOGGING) #if defined(TORRENT_VERBOSE_LOGGING) || defined(TORRENT_LOGGING)
(*m_logger) << boost::posix_time::microsec_clock::universal_time() << " FAILED: " (*m_logger) << "FAILED: " << (*i)->sender().as_string() << "\n";
<< (*i)->sender().as_string() << std::endl;
#endif #endif
p->second->set_failed(); p->second->set_failed();
m_half_open.erase(p); m_half_open.erase(p);