merged fix from RC_0_16

This commit is contained in:
Arvid Norberg 2013-05-11 07:42:40 +00:00
parent 4607e36c6f
commit 4c588eba3f
1 changed files with 10 additions and 2 deletions

View File

@ -478,12 +478,20 @@ inline int snprintf(char* buf, int len, char const* fmt, ...)
#endif
#if !defined(TORRENT_READ_HANDLER_MAX_SIZE)
# ifdef _GLIBCXX_DEBUG
# define TORRENT_READ_HANDLER_MAX_SIZE 400
# else
# define TORRENT_READ_HANDLER_MAX_SIZE 330
# endif
#endif
#if !defined(TORRENT_WRITE_HANDLER_MAX_SIZE)
# ifdef _GLIBCXX_DEBUG
# define TORRENT_WRITE_HANDLER_MAX_SIZE 400
# else
# define TORRENT_WRITE_HANDLER_MAX_SIZE 330
# endif
#endif
#if defined _MSC_VER && _MSC_VER <= 1200
#define for if (false) {} else for