only use wpath on windows

This commit is contained in:
Arvid Norberg 2008-07-20 16:13:52 +00:00
parent c605c8021f
commit df27541904
1 changed files with 2 additions and 1 deletions

View File

@ -83,7 +83,8 @@ POSSIBILITY OF SUCH DAMAGE.
#endif
// should wpath or path be used?
#if defined UNICODE && !defined BOOST_FILESYSTEM_NARROW_ONLY && BOOST_VERSION >= 103400
#if defined UNICODE && !defined BOOST_FILESYSTEM_NARROW_ONLY \
&& BOOST_VERSION >= 103400 && defined WIN32
#define TORRENT_USE_WPATH 1
#else
#define TORRENT_USE_WPATH 0