From 1b4c69359de2c1e21fac3d376d03169e7908a97c Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Tue, 26 Feb 2013 16:55:20 +0100 Subject: [PATCH] Repair WinBoard compile error __GITVERSION was not defined in WinBoard, as it was only defined with a compiler flag by ./configure, which WinBoard does not use. --- backend.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/backend.c b/backend.c index a196a9f..d229046 100644 --- a/backend.c +++ b/backend.c @@ -1344,7 +1344,11 @@ void InitBackEnd2 () { if (appData.debugMode) { +# ifdef __GIT_VERSION fprintf(debugFP, "Version: %s (%s)\n", programVersion, __GIT_VERSION); +# else + fprintf(debugFP, "Version: %s\n", programVersion); +# endif } ASSIGN(currentDebugFile, appData.nameOfDebugFile); // [HGM] debug split: remember initial name in use -- 1.7.0.4