made it build on cygwin

This commit is contained in:
Arvid Norberg
2005-08-18 11:20:17 +00:00
parent b38a3119a1
commit df4466cb86
2 changed files with 10 additions and 26 deletions

View File

@@ -32,11 +32,12 @@ POSSIBILITY OF SUCH DAMAGE.
#include <boost/filesystem/operations.hpp>
#include "libtorrent/file.hpp"
#include "libtorrent/utf8.hpp"
#include <sstream>
#ifdef _WIN32
// windows part
#include "libtorrent/utf8.hpp"
#include <io.h>
#include <fcntl.h>
#include <sys/stat.h>
@@ -143,7 +144,7 @@ namespace libtorrent
{
assert(path.is_complete());
close();
#if defined(WIN32) && defined(UNICODE)
#if defined(_WIN32) && defined(UNICODE)
std::wstring wpath(safe_convert(path.native_file_string()));
m_fd = ::_wopen(
wpath.c_str()