From f8f03431bb203aefdcc2606377d0b5327a1a2c18 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sat, 8 Sep 2012 19:21:31 +0000 Subject: [PATCH] fix mingw build --- src/file.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/file.cpp b/src/file.cpp index 2cd44e8ec..559339834 100644 --- a/src/file.cpp +++ b/src/file.cpp @@ -567,7 +567,7 @@ namespace libtorrent char cwd[TORRENT_MAX_PATH]; if (getcwd(cwd, sizeof(cwd)) == 0) return "/"; #endif -#if defined TORRENT_WINDOWS && TORRENT_USE_WSTRING +#if defined TORRENT_WINDOWS && !defined TORRENT_MINGW && TORRENT_USE_WSTRING return convert_from_wstring(cwd); #else return convert_from_native(cwd);