fix build without asserts

This commit is contained in:
Arvid Norberg
2014-01-08 05:45:13 +00:00
parent 90ef2cb343
commit b63cdcb991
3 changed files with 7 additions and 2 deletions

View File

@@ -36,7 +36,7 @@ POSSIBILITY OF SUCH DAMAGE.
#include <boost/detail/atomic_count.hpp>
#endif
#if (defined TORRENT_DEBUG && !TORRENT_NO_ASSERTS) || defined TORRENT_ASIO_DEBUGGING || TORRENT_RELEASE_ASSERTS
#if defined TORRENT_DEBUG || defined TORRENT_ASIO_DEBUGGING || TORRENT_RELEASE_ASSERTS
#ifdef __APPLE__
#include <AvailabilityMacros.h>
@@ -204,6 +204,10 @@ TORRENT_EXPORT void print_backtrace(char* out, int len, int max_depth) {}
#endif
#endif
#if (defined TORRENT_DEBUG && !TORRENT_NO_ASSERTS) || defined TORRENT_ASIO_DEBUGGING || TORRENT_RELEASE_ASSERTS
#if TORRENT_PRODUCTION_ASSERTS
char const* libtorrent_assert_log = "asserts.log";
// the number of asserts we've printed to the log