added TORRENT_NO_DEPRECATE around file_progress_float

This commit is contained in:
Alden Torres 2017-01-24 11:51:02 -05:00 committed by Arvid Norberg
parent 7285813449
commit 22b745d548
2 changed files with 4 additions and 2 deletions

View File

@ -512,11 +512,11 @@ namespace libtorrent
bool delete_files(int options); bool delete_files(int options);
void peers_erased(std::vector<torrent_peer*> const& peers); void peers_erased(std::vector<torrent_peer*> const& peers);
// ============ start deprecation ============= #ifndef TORRENT_NO_DEPRECATE
#if !TORRENT_NO_FPU #if !TORRENT_NO_FPU
void file_progress_float(aux::vector<float, file_index_t>& fp); void file_progress_float(aux::vector<float, file_index_t>& fp);
#endif #endif
// ============ end deprecation ============= #endif // TORRENT_NO_DEPRECATE
void piece_availability(aux::vector<int, piece_index_t>& avail) const; void piece_availability(aux::vector<int, piece_index_t>& avail) const;

View File

@ -10174,6 +10174,7 @@ namespace libtorrent
#endif #endif
} }
#ifndef TORRENT_NO_DEPRECATE
#if !TORRENT_NO_FPU #if !TORRENT_NO_FPU
void torrent::file_progress_float(aux::vector<float, file_index_t>& fp) void torrent::file_progress_float(aux::vector<float, file_index_t>& fp)
{ {
@ -10198,6 +10199,7 @@ namespace libtorrent
} }
} }
#endif #endif
#endif // TORRENT_NO_DEPRECATE
void torrent::file_progress(aux::vector<std::int64_t, file_index_t>& fp, int const flags) void torrent::file_progress(aux::vector<std::int64_t, file_index_t>& fp, int const flags)
{ {