From 67c6758ecfab4e46176f3a77f5934c6c8370f028 Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Mon, 1 Dec 2008 01:13:28 +0000 Subject: [PATCH] lt sync 3006 --- libtorrent/include/libtorrent/assert.hpp | 7 +++++++ libtorrent/include/libtorrent/lazy_entry.hpp | 1 + libtorrent/src/gzip.cpp | 1 + 3 files changed, 9 insertions(+) diff --git a/libtorrent/include/libtorrent/assert.hpp b/libtorrent/include/libtorrent/assert.hpp index 71a1aa406..0000b6d53 100644 --- a/libtorrent/include/libtorrent/assert.hpp +++ b/libtorrent/include/libtorrent/assert.hpp @@ -33,6 +33,11 @@ POSSIBILITY OF SUCH DAMAGE. #ifndef TORRENT_ASSERT #include "libtorrent/config.hpp" + +#if !defined TORRENT_DEBUG +#define TORRENT_ASSERT(a) do {} while(false) +#else + #include #ifdef __GNUC__ @@ -51,3 +56,5 @@ TORRENT_EXPORT void assert_fail(const char* expr, int line, char const* file, ch #endif +#endif + diff --git a/libtorrent/include/libtorrent/lazy_entry.hpp b/libtorrent/include/libtorrent/lazy_entry.hpp index 547900c99..01d1ac3ca 100644 --- a/libtorrent/include/libtorrent/lazy_entry.hpp +++ b/libtorrent/include/libtorrent/lazy_entry.hpp @@ -38,6 +38,7 @@ POSSIBILITY OF SUCH DAMAGE. #include "libtorrent/assert.hpp" #include "libtorrent/size_type.hpp" #include +#include namespace libtorrent { diff --git a/libtorrent/src/gzip.cpp b/libtorrent/src/gzip.cpp index 929816240..cf0c5b196 100644 --- a/libtorrent/src/gzip.cpp +++ b/libtorrent/src/gzip.cpp @@ -35,6 +35,7 @@ POSSIBILITY OF SUCH DAMAGE. #include "zlib.h" #include +#include namespace {