From 2043e2fae0914bba92545fbb11cbe0cf47e2b325 Mon Sep 17 00:00:00 2001 From: craftablescience Date: Mon, 27 May 2024 19:09:14 -0400 Subject: [PATCH] fix(sourcepp): missing include, remove pragma packs around math types --- include/sourcepp/math/Matrix.h | 4 ---- include/sourcepp/math/Vector.h | 8 +++----- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/include/sourcepp/math/Matrix.h b/include/sourcepp/math/Matrix.h index a3f361cef..9c413a87c 100644 --- a/include/sourcepp/math/Matrix.h +++ b/include/sourcepp/math/Matrix.h @@ -6,8 +6,6 @@ namespace sourcepp { -#pragma pack(push, 1) - template class Matrix { public: @@ -22,6 +20,4 @@ class Matrix { P data[M][N]; }; -#pragma pack(pop) - } // namespace sourcepp diff --git a/include/sourcepp/math/Vector.h b/include/sourcepp/math/Vector.h index 3a3e3cc14..0326273f6 100644 --- a/include/sourcepp/math/Vector.h +++ b/include/sourcepp/math/Vector.h @@ -1,8 +1,8 @@ #pragma once -namespace sourcepp { +#include -#pragma pack(push, 1) +namespace sourcepp { template struct Vec2 { @@ -21,7 +21,7 @@ struct Vec3 { using Vec3f = Vec3; using Vec3d = Vec3; -template +template struct Vec4 { P x; P y; @@ -31,6 +31,4 @@ struct Vec4 { using Vec4f = Vec4; using Vec4d = Vec4; -#pragma pack(pop) - } // namespace sourcepp