From c4b9be11ddc4a9df7bd7459843f2509191e20a28 Mon Sep 17 00:00:00 2001 From: Mikhail Romanko Date: Tue, 18 Aug 2026 10:42:22 +0300 Subject: [PATCH] Prevent name mangling in C++ --- CgeMath.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/CgeMath.h b/CgeMath.h index 622fa65..c213508 100644 --- a/CgeMath.h +++ b/CgeMath.h @@ -1,6 +1,10 @@ #ifndef CGE_MATH_H #define CGE_MATH_H +#ifdef __cplusplus +extern "C" { +#endif + #include void CgeBox2fUnion(const float aMin[2], const float aMax[2], @@ -262,4 +266,8 @@ void CgeVec4iMax(const int a[4], const int b[4], int out[4]); void CgeVec4iClamp(const int in[4], int minVal, int maxVal, int out[4]); void CgeVec4iAbs(const int in[4], int out[4]); +#ifdef __cplusplus +} +#endif + #endif /* CGE_MATH_H */