Use _getcwd on Windows

develop
Lethosor 2014-06-19 22:34:40 -04:00
parent 73fdb8b125
commit ec64a787c6
1 changed files with 4 additions and 0 deletions

@ -58,7 +58,11 @@ char * DFHack::Filesystem::getcwd ()
{
char *path;
char buf[LFS_MAXPATHLEN];
#ifdef _WIN32
if ((path = ::_getcwd(buf, LFS_MAXPATHLEN)) == NULL)
#else
if ((path = ::getcwd(buf, LFS_MAXPATHLEN)) == NULL)
#endif
return NULL;
else
return path;