Avoid a clash of exported symbols, put them into anonymous namespaces.

This commit is contained in:
Jakob Petsovits
2015-07-16 01:38:48 -04:00
parent 277917ec6a
commit b0f06504fb
2 changed files with 8 additions and 0 deletions

View File

@@ -43,6 +43,8 @@ using namespace libtorrent;
namespace lt = libtorrent;
using boost::tuples::ignore;
namespace {
template <class T>
boost::shared_ptr<T> clone_ptr(boost::shared_ptr<T> const& ptr)
{
@@ -59,6 +61,8 @@ bool on_alert(alert const* a)
return false;
}
} // anonymous namespace
void test_remap_files_gather(storage_mode_t storage_mode = storage_mode_sparse)
{
// in case the previous run was terminated