make disabling COMMITVERSION define actually compile

This commit is contained in:
minenice55 2026-04-25 14:14:05 -04:00
parent 992677ad42
commit e28519f2d1
2 changed files with 6 additions and 6 deletions

View file

@ -124,9 +124,9 @@
// Version numbers for netplay :upside_down_face:
int VERSION;
int SUBVERSION;
#ifdef COMMITVERSION
// #ifdef COMMITVERSION
UINT8 comprevision_abbrev_bin[GIT_SHA_ABBREV];
#endif
// #endif
#ifdef HAVE_DISCORDRPC
#include "discord.h"
@ -1413,7 +1413,7 @@ static void IdentifyVersion(void)
#endif
}
#ifdef COMMITVERSION
// #ifdef COMMITVERSION
static void D_AbbrevCommit (void)
{
UINT8 i;
@ -1424,7 +1424,7 @@ static void D_AbbrevCommit (void)
&comprevision_abbrev_bin[i]);
}
}
#endif
// #endif
static void
D_ConvertVersionNumbers (void)

View file

@ -312,10 +312,10 @@ extern int SUBVERSION;
// abbreviation. Maybe in another 20k commits, more than 8
// characters will be required! =P
// P.S. 8 is also what comptime generates
#ifdef COMMITVERSION
// #ifdef COMMITVERSION
#define GIT_SHA_ABBREV (4)
extern UINT8 comprevision_abbrev_bin[GIT_SHA_ABBREV];
#endif
// #endif
extern boolean devparm; // development mode (-debug)