fix up chdir

This commit is contained in:
Glenn Maynard
2002-12-16 02:11:16 +00:00
parent bcdeb684d3
commit 2f1408994a
+3
View File
@@ -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