From 646ee0d70ac9ac36ef1d13cc16bd4fe3aed9506c Mon Sep 17 00:00:00 2001 From: Christian Semmler Date: Wed, 8 Jan 2025 17:15:29 -0700 Subject: [PATCH] Use `COMPAT_MODE` to fix inline function not defined warnings on modern compilers (#1315) * Use `COMPAT_MODE` to fix inline function not defined * Fix --- LEGO1/realtime/matrix.h | 4 ++++ LEGO1/realtime/vector.h | 6 ++++++ LEGO1/realtime/vector4d.inl.h | 3 +++ 3 files changed, 13 insertions(+) diff --git a/LEGO1/realtime/matrix.h b/LEGO1/realtime/matrix.h index c792f4da..307f4ce5 100644 --- a/LEGO1/realtime/matrix.h +++ b/LEGO1/realtime/matrix.h @@ -52,4 +52,8 @@ public: const float* operator[](int idx) const { return m_data[idx]; } }; +#ifdef COMPAT_MODE +#include "matrix4d.inl.h" +#endif + #endif // MATRIX_H diff --git a/LEGO1/realtime/vector.h b/LEGO1/realtime/vector.h index defaab57..3841783f 100644 --- a/LEGO1/realtime/vector.h +++ b/LEGO1/realtime/vector.h @@ -148,4 +148,10 @@ public: friend class Mx4DPointFloat; }; +#ifdef COMPAT_MODE +#include "vector2d.inl.h" +#include "vector3d.inl.h" +#include "vector4d.inl.h" +#endif + #endif // VECTOR_H diff --git a/LEGO1/realtime/vector4d.inl.h b/LEGO1/realtime/vector4d.inl.h index a94e8f09..7bfce62d 100644 --- a/LEGO1/realtime/vector4d.inl.h +++ b/LEGO1/realtime/vector4d.inl.h @@ -3,6 +3,9 @@ #include "vector.h" +#include +#include + // FUNCTION: LEGO1 0x10002870 void Vector4::AddImpl(const float* p_value) {