From 0193e2fa97314bde7002cf46d0bbc043456a15d8 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 9 Nov 2010 13:59:51 +0200 Subject: Windows-specific fixes to the path implementation --- cutl/fs/path.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'cutl/fs') diff --git a/cutl/fs/path.cxx b/cutl/fs/path.cxx index a593926..ac1d78c 100644 --- a/cutl/fs/path.cxx +++ b/cutl/fs/path.cxx @@ -4,7 +4,8 @@ // license : MIT; see accompanying LICENSE file #ifdef _WIN32 -# include // _[w]getcwd, _[w]chdir, _MAX_PATH +# include // _MAX_PATH +# include // _[w]getcwd, _[w]chdir #else # include // mbstowcs, wcstombs # include // PATH_MAX @@ -73,7 +74,7 @@ namespace cutl #ifdef _WIN32 wchar_t wcwd[_MAX_PATH]; if(_wgetcwd(wcwd, _MAX_PATH) == 0) - throw invalid_basic_path ("."); + throw invalid_basic_path (L"."); #else char cwd[PATH_MAX]; if (getcwd (cwd, PATH_MAX) == 0) -- cgit v1.1