diff --git a/include/libtorrent/entry.hpp b/include/libtorrent/entry.hpp index c7685a2f8..c357a68ca 100644 --- a/include/libtorrent/entry.hpp +++ b/include/libtorrent/entry.hpp @@ -224,7 +224,7 @@ namespace libtorrent #endif }; -#if TORRENT_USE_IOSTREAM +#if defined TORRENT_DEBUG && TORRENT_USE_IOSTREAM inline std::ostream& operator<<(std::ostream& os, const entry& e) { e.print(os, 0);