From dd03bf861fdc92109c57d58cc7436066a8a02430 Mon Sep 17 00:00:00 2001 From: kipcode66 Date: Mon, 12 Jan 2026 17:48:25 -0500 Subject: standard compiler compatibility changes (#3040) * move math to cmath * replace stdarg to cstdarg * change stdint to stdint.h * minor fixes * change stdio to cstdio * change stdlib to stdlib * renamed ctype to cctype * fix missing argument for UNSET_FLAG --- src/SSystem/SComponent/c_m3d.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/SSystem/SComponent/c_m3d.cpp') diff --git a/src/SSystem/SComponent/c_m3d.cpp b/src/SSystem/SComponent/c_m3d.cpp index 1af53e81e3..8487468223 100644 --- a/src/SSystem/SComponent/c_m3d.cpp +++ b/src/SSystem/SComponent/c_m3d.cpp @@ -12,6 +12,11 @@ #include "SSystem/SComponent/c_math.h" #include "SSystem/SComponent/c_sxyz.h" +#ifndef __MWERKS__ +#include +#define FLT_EPSILON std::numeric_limits::epsilon() +#endif + const f32 G_CM3D_F_ABS_MIN = 32 * FLT_EPSILON; void cM3d_InDivPos1(const Vec* pVecA, const Vec* pVecB, f32 pF, Vec* pOut) { -- cgit v1.2.3