From: H.G. Muller Date: Tue, 26 Feb 2013 15:55:20 +0000 (+0100) Subject: Repair WinBoard compile error X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=1b4c69359de2c1e21fac3d376d03169e7908a97c;p=xboard.git 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. --- 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