build fix

This commit is contained in:
Arvid Norberg 2009-07-21 08:44:27 +00:00
parent b437e2c743
commit 4e5768847d
2 changed files with 3 additions and 3 deletions

View File

@ -174,7 +174,7 @@ namespace libtorrent
entry* find_key(std::string const& key);
entry const* find_key(std::string const& key) const;
#if defined TORRENT_VERBOSE_LOGGING && TORRENT_USE_IOSTREAM
#if (defined TORRENT_VERBOSE_LOGGING || defined TORRENT_DEBUG) && TORRENT_USE_IOSTREAM
void print(std::ostream& os, int indent = 0) const;
#endif

View File

@ -33,7 +33,7 @@ POSSIBILITY OF SUCH DAMAGE.
#include "libtorrent/pch.hpp"
#include <algorithm>
#if defined TORRENT_VERBOSE_LOGGING && TORRENT_USE_IOSTREAM
#if (defined TORRENT_VERBOSE_LOGGING || defined TORRENT_DEBUG) && TORRENT_USE_IOSTREAM
#include <iomanip>
#include <iostream>
#endif
@ -351,7 +351,7 @@ namespace libtorrent
TORRENT_ASSERT(false);
}
#if defined TORRENT_VERBOSE_LOGGING && TORRENT_USE_IOSTREAM
#if (defined TORRENT_VERBOSE_LOGGING || defined TORRENT_DEBUG) && TORRENT_USE_IOSTREAM
void entry::print(std::ostream& os, int indent) const
{
TORRENT_ASSERT(indent >= 0);