From e28519f2d10f4b27e8b5537946f89d8f255169a3 Mon Sep 17 00:00:00 2001 From: minenice55 Date: Sat, 25 Apr 2026 14:14:05 -0400 Subject: [PATCH] make disabling COMMITVERSION define actually compile --- src/d_main.cpp | 8 ++++---- src/doomdef.h | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/d_main.cpp b/src/d_main.cpp index d975255e9..9ce6e8c2c 100644 --- a/src/d_main.cpp +++ b/src/d_main.cpp @@ -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) diff --git a/src/doomdef.h b/src/doomdef.h index 228703a9f..8a8734e67 100644 --- a/src/doomdef.h +++ b/src/doomdef.h @@ -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)