Move TWOCC/FOURCC to common header file

This commit is contained in:
Christian Semmler 2023-08-10 04:27:29 -04:00
parent 10e3d507a5
commit c3c4f7db88
2 changed files with 3 additions and 2 deletions

View File

@ -5,8 +5,6 @@
#define SI_MAJOR_VERSION 2 #define SI_MAJOR_VERSION 2
#define SI_MINOR_VERSION 2 #define SI_MINOR_VERSION 2
#define FOURCC(a, b, c, d) (((a) << 0) | ((b) << 8) | ((c) << 16) | ((d) << 24))
// OFFSET: LEGO1 0x100cc4b0 // OFFSET: LEGO1 0x100cc4b0
MxDSFile::MxDSFile(const char *filename, MxULong skipReadingChunks) MxDSFile::MxDSFile(const char *filename, MxULong skipReadingChunks)
{ {

View File

@ -41,4 +41,7 @@ typedef MxU8 MxBool;
#define FALSE 0 #define FALSE 0
#endif #endif
#define TWOCC(a, b) (((a) << 0) | ((b) << 8))
#define FOURCC(a, b, c, d) (((a) << 0) | ((b) << 8) | ((c) << 16) | ((d) << 24))
#endif // MXTYPE_H #endif // MXTYPE_H