From bafb5622d409279b2fbab5ddfff0005ba0a7f068 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Mon, 5 Jan 2004 19:52:48 +0000 Subject: [PATCH] cleanup --- stepmania/src/archutils/Win32/arch_setup.h | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/stepmania/src/archutils/Win32/arch_setup.h b/stepmania/src/archutils/Win32/arch_setup.h index 6556341964..6c203e6572 100644 --- a/stepmania/src/archutils/Win32/arch_setup.h +++ b/stepmania/src/archutils/Win32/arch_setup.h @@ -9,20 +9,15 @@ #endif /* Don't include windows.h everywhere; when we do eventually include it, use this: */ -#ifdef _WINDOWS #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 /* has stuff that should be in unistd.h */ #include /* needs to be included before our fixes below */ -#define getcwd _getcwd -#define wgetcwd _wgetcwd -#define chdir _chdir -#define wchdir _wchdir -#define alloca _alloca -#define stat _stat -#define lstat _stat +#define lstat stat #define fsync _commit /* mkdir is missing the mode arg */ #define mkdir(p,m) mkdir(p)