Merge remote-tracking branch 'lethosor/filesystem-module-pr' into 0.34.11-r5

develop
expwnent 2014-06-19 22:36:40 -04:00
commit f72b52c5c0
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;