fixed warning on gcc 4.3

This commit is contained in:
Arvid Norberg 2008-07-30 06:41:05 +00:00
parent aed9a00e44
commit 854f029fc1
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ std::string demangle(char const* name);
#if (defined __linux__ || defined __MACH__) && defined __GNUC__ && !defined(NDEBUG)
TORRENT_EXPORT void assert_fail(const char* expr, int line, char const* file, char const* function);
#define TORRENT_ASSERT(x) if (x) {} else assert_fail(#x, __LINE__, __FILE__, __PRETTY_FUNCTION__)
#define TORRENT_ASSERT(x) do { if (x) {} else assert_fail(#x, __LINE__, __FILE__, __PRETTY_FUNCTION__); } while (false)
#else
#include <cassert>