avoid warnings about DBL_EPSILON redefinition in vecmat3

This commit is contained in:
Jiri Pittner 2024-02-14 15:42:58 +01:00
parent c0ce70fbc0
commit eaa0094948
1 changed files with 4 additions and 0 deletions

View File

@ -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<T>::epsilon()
#endif
#endif
float fast_sqrtinv(float);