header dependency fixes

This commit is contained in:
Arvid Norberg 2009-11-27 07:17:10 +00:00
parent e750910798
commit 9fd7a58370
3 changed files with 5 additions and 2 deletions

View File

@ -47,7 +47,7 @@ POSSIBILITY OF SUCH DAMAGE.
#include <boost/system/error_code.hpp>
#endif
#include "libtorrent/config.hpp"
#include <string.h>
namespace libtorrent
{

View File

@ -36,6 +36,7 @@ POSSIBILITY OF SUCH DAMAGE.
#include <utility>
#include <vector>
#include <string>
#include <cstring>
#include "libtorrent/config.hpp"
#include "libtorrent/assert.hpp"
#include "libtorrent/size_type.hpp"
@ -60,7 +61,7 @@ namespace libtorrent
char const* ptr;
bool operator<(pascal_string const& rhs) const
{
return memcmp(ptr, rhs.ptr, (std::min)(len, rhs.len)) < 0
return std::memcmp(ptr, rhs.ptr, (std::min)(len, rhs.len)) < 0
|| len < rhs.len;
}
};

View File

@ -32,6 +32,8 @@ POSSIBILITY OF SUCH DAMAGE.
#include <ctime>
#include <string>
#include <cstdio>
#include <limits>
#include <boost/version.hpp>
#include "libtorrent/config.hpp"
#include "libtorrent/time.hpp"