Linux compatibility fixes

git-svn-id: svn://ultimatepp.org/upp/trunk@10908 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2017-03-06 17:51:57 +00:00
parent dea8da24bb
commit 906064d6ca

View file

@ -32,7 +32,9 @@
#include "cpl_string.h"
#include "cpl_multiproc.h"
#ifdef COMPILER_MSC
#include <direct.h>
#endif
CPL_CVSID("$Id: cpl_path.cpp 27044 2014-03-16 23:41:27Z rouault $");
@ -366,7 +368,11 @@ char *CPLGetCurrentDir()
return NULL;
#ifdef HAVE_GETCWD
#ifdef COMPILER_MSC
return _getcwd( pszDirPath, nPathMax );
#else
return getcwd( pszDirPath, nPathMax );
#endif
#else
return NULL;
#endif /* HAVE_GETCWD */