From b97fe66b42c3d9388cfc6c8617d751d991dfacdc Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Wed, 4 Aug 2010 11:00:28 +0200 Subject: [PATCH] Fix erors when compiling with --disable-zippy The file args.h contained a codeblock in #ifdef ZIPPY, in stead of fields. --- args.h | 2 +- backend.c | 2 +- winboard/winboard.c | 4 ++-- xboard.c | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/args.h b/args.h index fb812ba..04f2c23 100644 --- a/args.h +++ b/args.h @@ -585,7 +585,7 @@ ArgDescriptor argDescriptors[] = { { "forceIllegalMoves", ArgTrue, (void *) &appData.forceIllegal, FALSE, INVALID }, { "showTargetSquares", ArgBoolean, (void *) &appData.markers, TRUE, FALSE }, -#ifdef ZIPPY +#if ZIPPY { "zippyTalk", ArgBoolean, (void *) &appData.zippyTalk, FALSE, (ArgIniType) ZIPPY_TALK }, { "zt", ArgTrue, (void *) &appData.zippyTalk, FALSE, INVALID }, { "xzt", ArgFalse, (void *) &appData.zippyTalk, FALSE, INVALID }, diff --git a/backend.c b/backend.c index 1c25faa..b1da687 100644 --- a/backend.c +++ b/backend.c @@ -4523,7 +4523,7 @@ SendMoveToProgram(moveNum, cps) /* Send 'go' if we are in a mode where machine should play. */ if( (moveNum == 0 && setboardSpoiledMachineBlack && cps == &first) && (gameMode == TwoMachinesPlay || -#ifdef ZIPPY +#if ZIPPY gameMode == IcsPlayingBlack || gameMode == IcsPlayingWhite || #endif gameMode == MachinePlaysBlack || gameMode == MachinePlaysWhite) ) { diff --git a/winboard/winboard.c b/winboard/winboard.c index fa310fe..e4e8db9 100644 --- a/winboard/winboard.c +++ b/winboard/winboard.c @@ -7463,7 +7463,7 @@ Enables icsEnables[] = { { -1, -1 } }; -#ifdef ZIPPY +#if ZIPPY Enables zippyEnables[] = { { IDM_MoveNow, MF_BYCOMMAND|MF_ENABLED }, { IDM_Hint, MF_BYCOMMAND|MF_ENABLED }, @@ -7674,7 +7674,7 @@ SetICSMode() SetMenuEnables(hmenu, icsEnables); EnableMenuItem(GetSubMenu(hmenu, OPTIONS_POS), ICS_POS, MF_BYPOSITION|MF_ENABLED); -#ifdef ZIPPY +#if ZIPPY if (appData.zippyPlay) { SetMenuEnables(hmenu, zippyEnables); if (!appData.noChessProgram) /* [DM] icsEngineAnalyze */ diff --git a/xboard.c b/xboard.c index ae13c6f..5e2fb1a 100644 --- a/xboard.c +++ b/xboard.c @@ -2861,7 +2861,7 @@ void SetICSMode() { SetMenuEnables(icsEnables); -#ifdef ZIPPY +#if ZIPPY if (appData.zippyPlay && !appData.noChessProgram) /* [DM] icsEngineAnalyze */ XtSetSensitive(XtNameToWidget(menuBarWidget, "menuMode.Analysis Mode"), True); #endif -- 1.7.0.4