From 532a035509cb7e579472fffdd49578ef3e49b0e3 Mon Sep 17 00:00:00 2001 From: Jiri Pittner Date: Wed, 2 Nov 2022 16:19:52 +0100 Subject: [PATCH] #ifdef NO_NUMERIC_LIMITS for portability --- vecmat3.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vecmat3.cc b/vecmat3.cc index 0f0414f..9e4703c 100644 --- a/vecmat3.cc +++ b/vecmat3.cc @@ -563,6 +563,10 @@ q[2][1]=q[1][2]=tmp; //numeric_limits not available on some crosscompilers for small MCUs #ifdef QUAT_NO_DOUBLE +#define NO_NUMERIC_LIMITS +#endif + +#ifdef NO_NUMERIC_LIMITS #define DBL_EPSILON 1.19209290e-07f #else #define DBL_EPSILON std::numeric_limits::epsilon()