fix up chdir
This commit is contained in:
@@ -197,12 +197,15 @@ void TrimRight(CString &str, const char *s = "\r\n\t ");
|
|||||||
|
|
||||||
/* Fix Windows breakage ... */
|
/* Fix Windows breakage ... */
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
|
#include <direct.h> /* has stuff that should be in unistd.h */
|
||||||
#define getcwd _getcwd
|
#define getcwd _getcwd
|
||||||
#define wgetcwd _wgetcwd
|
#define wgetcwd _wgetcwd
|
||||||
#define chdir _chdir
|
#define chdir _chdir
|
||||||
#define wchdir _wchdir
|
#define wchdir _wchdir
|
||||||
#define alloca _alloca
|
#define alloca _alloca
|
||||||
#define stat _stat
|
#define stat _stat
|
||||||
|
#else
|
||||||
|
#include <unistd.h> /* correct place with correct definitions */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user