added TORRENT_EXPORT to assert_fail

This commit is contained in:
Arvid Norberg 2007-09-17 18:19:08 +00:00
parent bc897ef808
commit 2661f834fd
2 changed files with 3 additions and 2 deletions

View File

@ -38,7 +38,9 @@ POSSIBILITY OF SUCH DAMAGE.
#undef assert
#endif
void assert_fail(const char* expr, int line, char const* file, char const* function);
#include "libtorrent/config.hpp"
TORRENT_EXPORT void assert_fail(const char* expr, int line, char const* file, char const* function);
#define assert(x) if (x) {} else assert_fail(#x, __LINE__, __FILE__, __PRETTY_FUNCTION__)

View File

@ -34,7 +34,6 @@ POSSIBILITY OF SUCH DAMAGE.
#define TORRENT_CONFIG_HPP_INCLUDED
#include <boost/config.hpp>
#include "libtorrent/assert.hpp"
#if defined(__GNUC__) && __GNUC__ >= 4