diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2010-11-09 13:59:51 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2010-11-09 13:59:51 +0200 |
commit | 0193e2fa97314bde7002cf46d0bbc043456a15d8 (patch) | |
tree | 185e2c4b30098c6f141d37272dd3cb7d76b4dc20 /cutl/fs/path.cxx | |
parent | df93aeb387361e4174335d601dd830a565322aec (diff) |
Windows-specific fixes to the path implementation
Diffstat (limited to 'cutl/fs/path.cxx')
-rw-r--r-- | cutl/fs/path.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
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 <direct.h> // _[w]getcwd, _[w]chdir, _MAX_PATH +# include <stdlib.h> // _MAX_PATH +# include <direct.h> // _[w]getcwd, _[w]chdir #else # include <stdlib.h> // mbstowcs, wcstombs # include <limits.h> // 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<wchar_t> ("."); + throw invalid_basic_path<wchar_t> (L"."); #else char cwd[PATH_MAX]; if (getcwd (cwd, PATH_MAX) == 0) |