COMMON: Replace MKID_BE by MKTAG
MKID_BE relied on unspecified behavior of the C++ compiler, and as such was always a bit unsafe. The new MKTAG macro is slightly less elegant, but does no longer depend on the behavior of the compiler. Inspired by FFmpeg, which has an almost identical macro.
This commit is contained in:
parent
a8b3501252
commit
0ce2ca4e00
95 changed files with 801 additions and 817 deletions
|
@ -53,7 +53,7 @@
|
|||
|
||||
namespace Agi {
|
||||
|
||||
static const uint32 AGIflag = MKID_BE('AGI:');
|
||||
static const uint32 AGIflag = MKTAG('A','G','I',':');
|
||||
|
||||
int AgiEngine::saveGame(const char *fileName, const char *description) {
|
||||
char gameIDstring[8] = "gameIDX";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue