Fix compilation warning at friend declarations

Use appropriate dllimport/dllexport attributes with friend declarations.
This commit is contained in:
d-komarov 2018-02-18 23:10:28 +02:00 committed by Arvid Norberg
parent f94b62acf7
commit 59bdb3db81
2 changed files with 2 additions and 2 deletions

View File

@ -93,7 +93,7 @@ namespace libtorrent
//
struct TORRENT_EXPORT settings_pack
{
friend void apply_pack(settings_pack const* pack, aux::session_settings& sett, aux::session_impl* ses);
friend TORRENT_EXTRA_EXPORT void apply_pack(settings_pack const* pack, aux::session_settings& sett, aux::session_impl* ses);
void set_str(int name, std::string val);
void set_int(int name, int val);

View File

@ -257,7 +257,7 @@ namespace libtorrent
friend struct session_handle;
friend struct feed;
friend class torrent;
friend std::size_t hash_value(torrent_handle const& th);
friend TORRENT_EXPORT std::size_t hash_value(torrent_handle const& th);
// constructs a torrent handle that does not refer to a torrent.
// i.e. is_valid() will return false.