diff --git a/include/libtorrent/aux_/session_impl.hpp b/include/libtorrent/aux_/session_impl.hpp index c02b7ae9d..d82412a28 100644 --- a/include/libtorrent/aux_/session_impl.hpp +++ b/include/libtorrent/aux_/session_impl.hpp @@ -177,7 +177,7 @@ namespace libtorrent initialize_timer(); }; - std::pair settings_map(); + TORRENT_EXPORT std::pair settings_map(); // this is the link between the main thread and the // thread started to run the main downloader loop diff --git a/src/session_impl.cpp b/src/session_impl.cpp index 1574cc24e..59292afda 100644 --- a/src/session_impl.cpp +++ b/src/session_impl.cpp @@ -278,7 +278,7 @@ namespace aux { #define TORRENT_SETTING(t, x) {#x, offsetof(session_settings,x), t}, - TORRENT_EXPORT bencode_map_entry session_settings_map[] = + bencode_map_entry session_settings_map[] = { TORRENT_SETTING(std_string, user_agent) TORRENT_SETTING(integer, tracker_completion_timeout)