diff --git a/include/libtorrent/config.hpp b/include/libtorrent/config.hpp index a2d9660e3..326c675e3 100644 --- a/include/libtorrent/config.hpp +++ b/include/libtorrent/config.hpp @@ -96,5 +96,9 @@ POSSIBILITY OF SUCH DAMAGE. #define NAME_MAX 255 #endif +#if (defined(TORRENT_LOGGING) || defined(TORRENT_VERBOSE_LOGGING)) && !defined (TORRENT_UPNP_LOGGING) +#define TORRENT_UPNP_LOGGING +#endif + #endif // TORRENT_CONFIG_HPP_INCLUDED diff --git a/include/libtorrent/natpmp.hpp b/include/libtorrent/natpmp.hpp index 000c1aa99..52d528a16 100644 --- a/include/libtorrent/natpmp.hpp +++ b/include/libtorrent/natpmp.hpp @@ -39,10 +39,6 @@ POSSIBILITY OF SUCH DAMAGE. #include #include -#if defined(TORRENT_LOGGING) || defined(TORRENT_VERBOSE_LOGGING) -#include -#endif - namespace libtorrent { diff --git a/include/libtorrent/upnp.hpp b/include/libtorrent/upnp.hpp index 5eafac985..f1cf4801d 100644 --- a/include/libtorrent/upnp.hpp +++ b/include/libtorrent/upnp.hpp @@ -47,10 +47,6 @@ POSSIBILITY OF SUCH DAMAGE. #include -#if (defined(TORRENT_LOGGING) || defined(TORRENT_VERBOSE_LOGGING)) && !defined (TORRENT_UPNP_LOGGING) -#define TORRENT_UPNP_LOGGING -#endif - #if defined(TORRENT_UPNP_LOGGING) #include #endif