mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
Linux compatibility fixes
git-svn-id: svn://ultimatepp.org/upp/trunk@10908 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
dea8da24bb
commit
906064d6ca
1 changed files with 6 additions and 0 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue