cleanup
This commit is contained in:
@@ -9,20 +9,15 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Don't include windows.h everywhere; when we do eventually include it, use this: */
|
/* Don't include windows.h everywhere; when we do eventually include it, use this: */
|
||||||
#ifdef _WINDOWS
|
|
||||||
#define WIN32_LEAN_AND_MEAN
|
#define WIN32_LEAN_AND_MEAN
|
||||||
#endif
|
|
||||||
|
/* If this isn't defined to 0, VC fails to define things like stat and alloca. */
|
||||||
|
#define __STDC__ 0
|
||||||
|
|
||||||
#include <direct.h> /* has stuff that should be in unistd.h */
|
#include <direct.h> /* has stuff that should be in unistd.h */
|
||||||
#include <wchar.h> /* needs to be included before our fixes below */
|
#include <wchar.h> /* needs to be included before our fixes below */
|
||||||
|
|
||||||
#define getcwd _getcwd
|
#define lstat stat
|
||||||
#define wgetcwd _wgetcwd
|
|
||||||
#define chdir _chdir
|
|
||||||
#define wchdir _wchdir
|
|
||||||
#define alloca _alloca
|
|
||||||
#define stat _stat
|
|
||||||
#define lstat _stat
|
|
||||||
#define fsync _commit
|
#define fsync _commit
|
||||||
/* mkdir is missing the mode arg */
|
/* mkdir is missing the mode arg */
|
||||||
#define mkdir(p,m) mkdir(p)
|
#define mkdir(p,m) mkdir(p)
|
||||||
|
|||||||
Reference in New Issue
Block a user