summaryrefslogtreecommitdiffhomepage
path: root/src/modules/CoreGfx/MathGfx.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/CoreGfx/MathGfx.h')
-rw-r--r--src/modules/CoreGfx/MathGfx.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/modules/CoreGfx/MathGfx.h b/src/modules/CoreGfx/MathGfx.h
index dbd732d3..218fda51 100644
--- a/src/modules/CoreGfx/MathGfx.h
+++ b/src/modules/CoreGfx/MathGfx.h
@@ -4,7 +4,8 @@
======================================== */
-#pragma once
+#ifndef COREGFX_MATHGFX_H
+#define COREGFX_MATHGFX_H
/// @file MathMgr.h
/// @brief Linear interpolation implementation.
@@ -24,4 +25,6 @@ typedef float cg_real_t;
inline cg_real_t cg_math_lerp(cg_real_t to, cg_real_t from, cg_real_t stat) {
return (from) + (to - from) * stat;
}
-} // namespace UI \ No newline at end of file
+} // namespace UI
+
+#endif