From b1b0a37a0c8f54fa465fde04820d77ae2f7c2327 Mon Sep 17 00:00:00 2001 From: kearwood Date: Thu, 7 Jul 2022 23:02:07 -0700 Subject: [PATCH] Replaced ifdef guards with pragma once --- include/vector2i.h | 6 +----- include/vector3.h | 5 +---- include/vector4.h | 5 +---- src/krhelpers.h | 6 ++---- 4 files changed, 5 insertions(+), 17 deletions(-) diff --git a/include/vector2i.h b/include/vector2i.h index 558bbdf..6893b45 100644 --- a/include/vector2i.h +++ b/include/vector2i.h @@ -29,9 +29,7 @@ // or implied, of Kearwood Gilbert. // - -#ifndef KRAKEN_VECTOR2I_H -#define KRAKEN_VECTOR2I_H +#pragma once #include // for hash<> #include // for std::numeric_limits<> @@ -120,5 +118,3 @@ namespace std { } }; } // namespace std - -#endif // KRAKEN_VECTOR2I_H diff --git a/include/vector3.h b/include/vector3.h index e135525..8c1c052 100644 --- a/include/vector3.h +++ b/include/vector3.h @@ -29,8 +29,7 @@ // or implied, of Kearwood Gilbert. // -#ifndef KRAKEN_VECTOR3_H -#define KRAKEN_VECTOR3_H +#pragma once #include // for hash<> @@ -151,5 +150,3 @@ namespace std { } }; } // namespace std - -#endif // KRAKEN_VECTOR3_H diff --git a/include/vector4.h b/include/vector4.h index ad1f735..03d773c 100644 --- a/include/vector4.h +++ b/include/vector4.h @@ -29,8 +29,7 @@ // or implied, of Kearwood Gilbert. // -#ifndef KRAKEN_VECTOR4_H -#define KRAKEN_VECTOR4_H +#pragma once #include // for hash<> @@ -125,5 +124,3 @@ namespace std { } }; } // namespace std - -#endif // KRAKEN_VECTOR4_H diff --git a/src/krhelpers.h b/src/krhelpers.h index f24f480..0aac325 100644 --- a/src/krhelpers.h +++ b/src/krhelpers.h @@ -28,8 +28,8 @@ // authors and should not be interpreted as representing official policies, either expressed // or implied, of Kearwood Gilbert. // -#ifndef KRHELPERS_H -#define KRHELPERS_H + +#pragma once #if defined(KRAKEN_USE_OPENGL) @@ -64,5 +64,3 @@ namespace kraken { void SetUniform(GLint location, const Matrix4 &v); } // namespace kraken #endif // defined(KRAKEN_USE_OPENGL) - -#endif