From ca30b359aca5abcebe2590fc2c2318ff014f8130 Mon Sep 17 00:00:00 2001 From: Eric Mullins Date: Mon, 5 Oct 2009 01:01:54 -0600 Subject: [PATCH] removed _winmajor if not defined so that VC 2008 can compile the project The oldDialog variable should just be set to 0 in all cases now, and as such, legacy code supporting the old dialog ought to be removed. The test for _winmajor is against < 4, which is always false at present, causing oldDialog to be 0 in every conceviable circumstance. --- winboard/winboard.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/winboard/winboard.c b/winboard/winboard.c index 81aa0fb..3b2dd29 100644 --- a/winboard/winboard.c +++ b/winboard/winboard.c @@ -225,7 +225,11 @@ static struct { int x; int y; int mode; } backTextureSquareInfo[BOARD_SIZE][BOAR #if __GNUC__ && !defined(_winmajor) #define oldDialog 0 /* cygwin doesn't define _winmajor; mingw does */ #else +#if defined(_winmajor) #define oldDialog (_winmajor < 4) +#else +#define oldDialog 0 +#endif #endif char *defaultTextAttribs[] = -- 1.7.0.4