Fix compilation warning at friend declarations
Use appropriate dllimport/dllexport attributes with friend declarations.
This commit is contained in:
parent
f94b62acf7
commit
59bdb3db81
|
@ -93,7 +93,7 @@ namespace libtorrent
|
||||||
//
|
//
|
||||||
struct TORRENT_EXPORT settings_pack
|
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_str(int name, std::string val);
|
||||||
void set_int(int name, int val);
|
void set_int(int name, int val);
|
||||||
|
|
|
@ -257,7 +257,7 @@ namespace libtorrent
|
||||||
friend struct session_handle;
|
friend struct session_handle;
|
||||||
friend struct feed;
|
friend struct feed;
|
||||||
friend class torrent;
|
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.
|
// constructs a torrent handle that does not refer to a torrent.
|
||||||
// i.e. is_valid() will return false.
|
// i.e. is_valid() will return false.
|
||||||
|
|
Loading…
Reference in New Issue