fixed inconsistent build requirement around entry::print()

This commit is contained in:
Arvid Norberg 2009-06-09 05:56:18 +00:00
parent 33768fa282
commit 92a541035e
2 changed files with 4 additions and 4 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 TORRENT_USE_IOSTREAM
#if defined TORRENT_DEBUG && TORRENT_USE_IOSTREAM
void print(std::ostream& os, int indent = 0) const;
#endif

View File

@ -553,7 +553,7 @@ void test_fastresume(path const& test_path)
ses.remove_torrent(h, session::delete_files);
}
TEST_CHECK(!exists(test_path / "tmp1/temporary"));
#if TORRENT_USE_IOSTREAM
#if defined TORRENT_DEBUG && TORRENT_USE_IOSTREAM
resume.print(std::cout);
#endif
@ -626,7 +626,7 @@ void test_rename_file_in_fastresume(path const& test_path)
TEST_CHECK(!exists(test_path / "tmp2/temporary"));
TEST_CHECK(exists(test_path / "tmp2/testing_renamed_files"));
TEST_CHECK(resume.dict().find("mapped_files") != resume.dict().end());
#if TORRENT_USE_IOSTREAM
#if defined TORRENT_DEBUG && TORRENT_USE_IOSTREAM
resume.print(std::cout);
#endif
@ -649,7 +649,7 @@ void test_rename_file_in_fastresume(path const& test_path)
ses.remove_torrent(h);
}
TEST_CHECK(resume.dict().find("mapped_files") != resume.dict().end());
#if TORRENT_USE_IOSTREAM
#if defined TORRENT_DEBUG && TORRENT_USE_IOSTREAM
resume.print(std::cout);
#endif
remove_all(test_path / "tmp2");