From 9ce3a1e6aa40713db5dd11aba3595fb0ad75cc60 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 18 May 2008 11:41:21 +0000 Subject: win32 build updates --- src/sys/sys.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/sys') diff --git a/src/sys/sys.cc b/src/sys/sys.cc index 4cb820d..36a40a0 100644 --- a/src/sys/sys.cc +++ b/src/sys/sys.cc @@ -29,10 +29,10 @@ namespace sys { void mkdir(std::string const &path) { #ifdef _WIN32 - string p(path); - for (size_t i = 0; i < p.lenght(); i++) + std::string p(path); + for (size_t i = 0; i < p.size(); i++) if (p[i] == '/') p[i] = '\\'; - ::mkdir(p.cstr()); + mkdir(p.c_str()); #else ::mkdir(path.c_str(), 0777); -- cgit v1.2.3