From eaa0094948a327c193921e9cb3c4b15a1816a760 Mon Sep 17 00:00:00 2001 From: Jiri Pittner Date: Wed, 14 Feb 2024 15:42:58 +0100 Subject: [PATCH] avoid warnings about DBL_EPSILON redefinition in vecmat3 --- vecmat3.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vecmat3.h b/vecmat3.h index e047c14..d5ca0c6 100644 --- a/vecmat3.h +++ b/vecmat3.h @@ -33,12 +33,16 @@ namespace LA_Vecmat3 { +#ifndef DBL_EPSILON + #ifdef NO_NUMERIC_LIMITS #define DBL_EPSILON 1.19209290e-07f #else #define DBL_EPSILON std::numeric_limits::epsilon() #endif +#endif + float fast_sqrtinv(float);