diff --git a/include/lol/math/private/matrix.h b/include/lol/math/private/matrix.h index d73d2a0f..9b174ff7 100644 --- a/include/lol/math/private/matrix.h +++ b/include/lol/math/private/matrix.h @@ -156,7 +156,7 @@ struct [[nodiscard]] mat_t explicit inline mat_t(mat_t const &m) : m_data{ (element)m[0], (element)m[1], (element)m[2] } {} - explicit mat_t(class quat_t const &q); + explicit mat_t(struct quat_t const &q); inline vec_t& operator[](size_t n) { return m_data[n]; } inline vec_t const& operator[](size_t n) const { return m_data[n]; } @@ -252,7 +252,7 @@ struct [[nodiscard]] mat_t : m_data{ (element)m[0], (element)m[1], (element)m[2], (element)m[3] } {} - explicit mat_t(class quat_t const &q); + explicit mat_t(struct quat_t const &q); inline vec_t& operator[](size_t n) { return m_data[n]; } inline vec_t const& operator[](size_t n) const { return m_data[n]; } diff --git a/include/lol/math/private/matrix.ipp b/include/lol/math/private/matrix.ipp index c3ab37ff..56ac4541 100644 --- a/include/lol/math/private/matrix.ipp +++ b/include/lol/math/private/matrix.ipp @@ -15,6 +15,13 @@ #include #include +#if _WIN32 +# pragma push_macro("near") +# pragma push_macro("far") +# undef near +# undef far +#endif + namespace lol { @@ -277,3 +284,8 @@ inline mat4 mat4::shifted_perspective(float fov_y, float screen_size, } /* namespace lol */ +#if _WIN32 +# pragma pop_macro("near") +# pragma pop_macro("far") +#endif +