From 316303b6debf471166e0ddb24ec8b770177e9ef5 Mon Sep 17 00:00:00 2001 From: Christian Semmler Date: Wed, 8 Jan 2025 16:18:49 -0700 Subject: [PATCH] Use `COMPAT_MODE` to fix inline function not defined --- LEGO1/realtime/matrix.h | 4 ++++ LEGO1/realtime/vector.h | 6 ++++++ 2 files changed, 10 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 @@ class Matrix4 { 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 @@ class Vector4 : public Vector3 { friend class Mx4DPointFloat; }; +#ifdef COMPAT_MODE +#include "vector2d.inl.h" +#include "vector3d.inl.h" +#include "vector4d.inl.h" +#endif + #endif // VECTOR_H