aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2010-11-09 13:59:51 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2010-11-09 13:59:51 +0200
commit0193e2fa97314bde7002cf46d0bbc043456a15d8 (patch)
tree185e2c4b30098c6f141d37272dd3cb7d76b4dc20
parentdf93aeb387361e4174335d601dd830a565322aec (diff)
Windows-specific fixes to the path implementation
-rw-r--r--cutl/fs/path.cxx5
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)