From 4bfd32e5af86fa4730991a5c65a0dc7777b771eb Mon Sep 17 00:00:00 2001 From: disinvite Date: Thu, 25 Apr 2024 11:23:03 -0400 Subject: [PATCH] Restore operator!= for modern compilers --- LEGO1/omni/include/mxatom.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/LEGO1/omni/include/mxatom.h b/LEGO1/omni/include/mxatom.h index 5a4b6877..9528a3c6 100644 --- a/LEGO1/omni/include/mxatom.h +++ b/LEGO1/omni/include/mxatom.h @@ -68,6 +68,12 @@ class MxAtomId { // FUNCTION: BETA10 0x100178d0 inline MxBool operator==(const MxAtomId& p_atomId) const { return this->m_internal == p_atomId.m_internal; } +#ifdef COMPAT_MODE + // Required for modern compilers. + // MSVC 4.20 uses a synthetic function from INCLUDE/UTILITY that inverts operator== + inline MxBool operator!=(const MxAtomId& p_atomId) const { return this->m_internal != p_atomId.m_internal; } +#endif + // FUNCTION: BETA10 0x10025d40 MxAtomId() { this->m_internal = 0; }