merged attempted build fix from RC_0_16

This commit is contained in:
Arvid Norberg 2012-08-16 00:48:13 +00:00
parent e357440fd9
commit 70d3170963
3 changed files with 5 additions and 9 deletions

View File

@ -63,7 +63,10 @@ POSSIBILITY OF SUCH DAMAGE.
#include <cstdlib>
#include <stdlib.h>
#include <string>
#include <exception>
#include <iterator> // for distance
#ifdef _MSC_VER
#pragma warning(push, 1)
@ -248,11 +251,7 @@ namespace libtorrent
++in; // 'e'
ret = entry(entry::int_t);
char* end_pointer;
#if defined TORRENT_WINDOWS && !defined TORRENT_MINGW
ret.integer() = _strtoi64(val.c_str(), &end_pointer, 10);
#else
ret.integer() = strtoll(val.c_str(), &end_pointer, 10);
#endif
#ifdef TORRENT_DEBUG
ret.m_type_queried = false;
#endif
@ -354,7 +353,7 @@ namespace libtorrent
}
TORRENT_ASSERT(*in == ':');
++in; // ':'
int len = std::atoi(len_s.c_str());
int len = atoi(len_s.c_str());
ret = entry(entry::string_t);
read_string(in, end, len, ret.string(), err);
if (err)

View File

@ -59,7 +59,6 @@ POSSIBILITY OF SUCH DAMAGE.
#include <windows.h>
#include <winioctl.h>
#include <sys/types.h>
#include <sys/stat.h>
#else
// posix part
#define _FILE_OFFSET_BITS 64
@ -75,7 +74,6 @@ POSSIBILITY OF SUCH DAMAGE.
#include <unistd.h>
#include <sys/uio.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <dirent.h> // for DIR

View File

@ -35,7 +35,6 @@ POSSIBILITY OF SUCH DAMAGE.
#include <vector>
#include <sys/types.h>
#include <sys/stat.h>
#ifdef _MSC_VER
#pragma warning(push, 1)