From: Eric Mullins Date: Mon, 5 Oct 2009 07:01:54 +0000 (-0600) Subject: removed _winmajor if not defined so that VC 2008 can compile the project X-Git-Tag: v4.4.1.20091019~57 X-Git-Url: http://winboard.nl/cgi-bin?p=xboard.git;a=commitdiff_plain;h=ca30b359aca5abcebe2590fc2c2318ff014f8130 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. --- 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[] =