Skip to content

Commit 13a19a9

Browse files
authored
Improve use of RETAIL_COMPATIBLE_CRC macro (#983)
1 parent 9a1b761 commit 13a19a9

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

Generals/Code/GameEngine/Include/Common/crc.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class CRC
4747
// UnsignedInt get( void ) { return htonl(crc); } ///< Get the combined CRC
4848
UnsignedInt get( void );
4949

50-
#if (defined(_MSC_VER) && _MSC_VER < 1300) && defined(RETAIL_COMPATIBLE_CRC)
50+
#if (defined(_MSC_VER) && _MSC_VER < 1300) && RETAIL_COMPATIBLE_CRC
5151
void set( UnsignedInt v )
5252
{
5353
crc = v;
@@ -127,7 +127,7 @@ class CRC
127127
return crc;
128128
}
129129

130-
#if (defined(_MSC_VER) && _MSC_VER < 1300) && defined(RETAIL_COMPATIBLE_CRC)
130+
#if (defined(_MSC_VER) && _MSC_VER < 1300) && RETAIL_COMPATIBLE_CRC
131131
void set( UnsignedInt v )
132132
{
133133
crc = v;

Generals/Code/GameEngine/Source/Common/GlobalData.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -990,7 +990,7 @@ GlobalData::GlobalData()
990990
File *fp;
991991
// TheSuperHackers @tweak SkyAero/xezon 27/05/2025
992992
// Simulate the EXE's CRC value to force Network and Replay compatibility with another build.
993-
#if (defined(_MSC_VER) && _MSC_VER < 1300) && defined(RETAIL_COMPATIBLE_CRC)
993+
#if (defined(_MSC_VER) && _MSC_VER < 1300) && RETAIL_COMPATIBLE_CRC
994994

995995
#define GENERALS_108_CD_EXE_CRC 0x93d1eab4
996996
#define GENERALS_108_STEAM_EXE_CRC 0x8d6e4dd7

GeneralsMD/Code/GameEngine/Include/Common/crc.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class CRC
4747
// UnsignedInt get( void ) { return htonl(crc); } ///< Get the combined CRC
4848
UnsignedInt get( void );
4949

50-
#if (defined(_MSC_VER) && _MSC_VER < 1300) && defined(RETAIL_COMPATIBLE_CRC)
50+
#if (defined(_MSC_VER) && _MSC_VER < 1300) && RETAIL_COMPATIBLE_CRC
5151
void set( UnsignedInt v )
5252
{
5353
crc = v;
@@ -127,7 +127,7 @@ class CRC
127127
return crc;
128128
}
129129

130-
#if (defined(_MSC_VER) && _MSC_VER < 1300) && defined(RETAIL_COMPATIBLE_CRC)
130+
#if (defined(_MSC_VER) && _MSC_VER < 1300) && RETAIL_COMPATIBLE_CRC
131131
void set( UnsignedInt v )
132132
{
133133
crc = v;

GeneralsMD/Code/GameEngine/Source/Common/GlobalData.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -999,7 +999,7 @@ GlobalData::GlobalData()
999999
File *fp;
10001000
// TheSuperHackers @tweak SkyAero/xezon 27/05/2025
10011001
// Simulate the EXE's CRC value to force Network and Replay compatibility with another build.
1002-
#if (defined(_MSC_VER) && _MSC_VER < 1300) && defined(RETAIL_COMPATIBLE_CRC)
1002+
#if (defined(_MSC_VER) && _MSC_VER < 1300) && RETAIL_COMPATIBLE_CRC
10031003

10041004
#define GENERALSMD_104_CD_EXE_CRC 0x4f6c5afe
10051005
#define GENERALSMD_104_STEAM_EXE_CRC 0xcb430f5f

0 commit comments

Comments
 (0)