From 8601756f7e79db15efecc38855d8936a69eb228b Mon Sep 17 00:00:00 2001 From: Pascal Serrarens Date: Thu, 10 Feb 2022 17:22:52 +0100 Subject: [PATCH] removed use of #pragma-once --- include/Quaternion.h | 7 +++++-- include/Vector3.h | 5 ++++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/include/Quaternion.h b/include/Quaternion.h index c61439c..8e17a65 100644 --- a/include/Quaternion.h +++ b/include/Quaternion.h @@ -2,8 +2,9 @@ // License, v. 2.0.If a copy of the MPL was not distributed with this // file, You can obtain one at https ://mozilla.org/MPL/2.0/. -#pragma once -//struct Vector3; +#ifndef QUATERNION_H +#define QUATERNION_H + #include "Vector3.h" extern "C" { @@ -250,3 +251,5 @@ private: Vector3 xyz() const; }; + +#endif \ No newline at end of file diff --git a/include/Vector3.h b/include/Vector3.h index 15d05e9..8f4d31d 100644 --- a/include/Vector3.h +++ b/include/Vector3.h @@ -2,7 +2,8 @@ // License, v. 2.0.If a copy of the MPL was not distributed with this // file, You can obtain one at https ://mozilla.org/MPL/2.0/. -#pragma once +#ifndef VECTOR3_H +#define VECTOR3_H extern "C" { /// @@ -244,3 +245,5 @@ public: /// Value -1 is *from* vector minus the difference between *from* and *to* etc. static Vector3 Lerp(Vector3 from, Vector3 to, float f); }; + +#endif \ No newline at end of file