mirror of
https://github.com/isledecomp/isle-portable.git
synced 2024-11-26 01:17:55 -05:00
move override
macro to compat.h
This commit is contained in:
parent
67115e32d3
commit
f707af34db
5 changed files with 15 additions and 9 deletions
|
@ -11,4 +11,11 @@
|
|||
#define COMPAT_CONST
|
||||
#endif
|
||||
|
||||
// We use `override` so newer compilers can tell us our vtables are valid,
|
||||
// however this keyword was added in C++11, so we define it as empty for
|
||||
// compatibility with older compilers.
|
||||
#if defined(_MSC_VER) && _MSC_VER <= 1200 // 1200 corresponds to VC6.0 but "override" was probably added even later
|
||||
#define override
|
||||
#endif
|
||||
|
||||
#endif // ISLECOMPAT_H
|
|
@ -1,6 +1,7 @@
|
|||
#ifndef LEGOSTREAM_H
|
||||
#define LEGOSTREAM_H
|
||||
|
||||
#include "compat.h"
|
||||
#include "decomp.h"
|
||||
#include "mxtypes.h"
|
||||
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
|
||||
#include <string.h>
|
||||
|
||||
#include "compat.h"
|
||||
#include "mxtypes.h"
|
||||
|
||||
class MxParam;
|
||||
|
@ -14,8 +15,8 @@ class MxCore
|
|||
public:
|
||||
__declspec(dllexport) MxCore();
|
||||
__declspec(dllexport) virtual ~MxCore(); // vtable+00
|
||||
__declspec(dllexport) virtual MxLong Notify(MxParam &p); // vtable+04
|
||||
virtual MxLong Tickle(); // vtable+08
|
||||
__declspec(dllexport) virtual MxResult Notify(MxParam &p); // vtable+04
|
||||
virtual MxResult Tickle(); // vtable+08
|
||||
|
||||
// OFFSET: LEGO1 0x100144c0
|
||||
inline virtual const char *ClassName() const // vtable+0c
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
#ifndef MXTHREAD_H
|
||||
#define MXTHREAD_H
|
||||
|
||||
#include "compat.h"
|
||||
#include "mxtypes.h"
|
||||
#include "mxsemaphore.h"
|
||||
|
||||
|
|
|
@ -39,8 +39,4 @@ typedef MxU8 MxBool;
|
|||
#define FALSE 0
|
||||
#endif
|
||||
|
||||
#if defined(_MSC_VER) && _MSC_VER <= 1200 // 1200 corresponds to VC6.0 but "override" was probably added even later
|
||||
#define override
|
||||
#endif
|
||||
|
||||
#endif // MXTYPE_H
|
||||
|
|
Loading…
Reference in a new issue