fixed boost version test in storage

This commit is contained in:
Arvid Norberg 2007-04-19 16:22:13 +00:00
parent 172205d7fb
commit 219db47776
1 changed files with 6 additions and 6 deletions

View File

@ -120,7 +120,7 @@ namespace libtorrent
} }
#endif #endif
#if defined(_WIN32) && defined(UNICODE) && BOOST_VERSION < 13400 #if defined(_WIN32) && defined(UNICODE) && BOOST_VERSION < 103400
namespace namespace
{ {
using libtorrent::safe_convert; using libtorrent::safe_convert;
@ -256,7 +256,7 @@ namespace libtorrent
try try
{ {
path f = p / i->path; path f = p / i->path;
#if defined(_WIN32) && defined(UNICODE) && BOOST_VERSION < 13400 #if defined(_WIN32) && defined(UNICODE) && BOOST_VERSION < 103400
size = file_size_win(f); size = file_size_win(f);
time = last_write_time_win(f); time = last_write_time_win(f);
#else #else
@ -293,7 +293,7 @@ namespace libtorrent
try try
{ {
path f = p / i->path; path f = p / i->path;
#if defined(_WIN32) && defined(UNICODE) && BOOST_VERSION < 13400 #if defined(_WIN32) && defined(UNICODE) && BOOST_VERSION < 103400
size = file_size_win(f); size = file_size_win(f);
time = last_write_time_win(f); time = last_write_time_win(f);
#else #else
@ -405,7 +405,7 @@ namespace libtorrent
{ {
last_path = dir; last_path = dir;
#if defined(_WIN32) && defined(UNICODE) && BOOST_VERSION < 13400 #if defined(_WIN32) && defined(UNICODE) && BOOST_VERSION < 103400
if (!exists_win(last_path)) if (!exists_win(last_path))
create_directories_win(last_path); create_directories_win(last_path);
#else #else
@ -503,7 +503,7 @@ namespace libtorrent
save_path = complete(save_path); save_path = complete(save_path);
#if defined(_WIN32) && defined(UNICODE) && BOOST_VERSION < 13400 #if defined(_WIN32) && defined(UNICODE) && BOOST_VERSION < 103400
std::wstring wsave_path(safe_convert(save_path.native_file_string())); std::wstring wsave_path(safe_convert(save_path.native_file_string()));
if (!exists_win(save_path)) if (!exists_win(save_path))
{ {
@ -527,7 +527,7 @@ namespace libtorrent
try try
{ {
#if defined(_WIN32) && defined(UNICODE) && BOOST_VERSION < 13400 #if defined(_WIN32) && defined(UNICODE) && BOOST_VERSION < 103400
rename_win(old_path, new_path); rename_win(old_path, new_path);
#else #else
rename(old_path, new_path); rename(old_path, new_path);