summaryrefslogtreecommitdiff
path: root/src/SSystem/SComponent/c_m3d.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/SSystem/SComponent/c_m3d.cpp')
-rw-r--r--src/SSystem/SComponent/c_m3d.cpp5
1 files changed, 5 insertions, 0 deletions
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 <limits>
+#define FLT_EPSILON std::numeric_limits<float>::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) {