fix mingw build
This commit is contained in:
parent
9951724f16
commit
f8f03431bb
|
@ -567,7 +567,7 @@ namespace libtorrent
|
||||||
char cwd[TORRENT_MAX_PATH];
|
char cwd[TORRENT_MAX_PATH];
|
||||||
if (getcwd(cwd, sizeof(cwd)) == 0) return "/";
|
if (getcwd(cwd, sizeof(cwd)) == 0) return "/";
|
||||||
#endif
|
#endif
|
||||||
#if defined TORRENT_WINDOWS && TORRENT_USE_WSTRING
|
#if defined TORRENT_WINDOWS && !defined TORRENT_MINGW && TORRENT_USE_WSTRING
|
||||||
return convert_from_wstring(cwd);
|
return convert_from_wstring(cwd);
|
||||||
#else
|
#else
|
||||||
return convert_from_native(cwd);
|
return convert_from_native(cwd);
|
||||||
|
|
Loading…
Reference in New Issue