mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-23 00:14:22 +00:00
move override
macro to compat.h
This commit is contained in:
@@ -11,4 +11,11 @@
|
||||
#define COMPAT_CONST
|
||||
#endif
|
||||
|
||||
#endif // ISLECOMPAT_H
|
||||
// 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
|
||||
|
Reference in New Issue
Block a user