fix(vc6): use unsigned __int64 and %I64X to support VC6 compiler in BitFlags.h#2759
fix(vc6): use unsigned __int64 and %I64X to support VC6 compiler in BitFlags.h#2759Okladnoj wants to merge 1 commit into
Conversation
|
| Filename | Overview |
|---|---|
| Generals/Code/GameEngine/Include/Common/BitFlags.h | Replaces unsigned long long with UnsignedInt64 and switches printf specifier from %llX to %I64X to fix VC6 compilation error in toHexString(). |
| GeneralsMD/Code/GameEngine/Include/Common/BitFlags.h | Identical fix to the Generals counterpart — replaces unsigned long long / %llX with UnsignedInt64 / %I64X for VC6 compatibility in toHexString(). |
Reviews (4): Last reviewed commit: "fix(vc6): Use UnsignedInt64 and %I64X to..." | Re-trigger Greptile
8253be4 to
2a9c0f5
Compare
| snprintf(chunkBuf, sizeof(chunkBuf), "%016I64X", val); | ||
| else | ||
| snprintf(chunkBuf, sizeof(chunkBuf), "%llX", val); | ||
| snprintf(chunkBuf, sizeof(chunkBuf), "%I64X", val); |
There was a problem hiding this comment.
Since <inttypes.h> does not exist in the MSVC 6.0 standard library, the compiler immediately fails in VC6 mode.
Here are the logs from CI:
Build GeneralsMD / vc6-debug+t+e
##[error]D:\a\GeneralsGameCode\GeneralsGameCode\GeneralsMD\Code\GameEngine\Include\Common/BitFlags.h(34) : fatal error C1083: Cannot open include file: 'inttypes.h': No such file or directory
9d90abc to
a77a000
Compare
a77a000 to
62a8a4f
Compare
Failure Logs at disable RETAIL_COMPATIBLE_CRC