#ifdef NO_NUMERIC_LIMITS for portability
This commit is contained in:
parent
f368a6dd50
commit
532a035509
@ -563,6 +563,10 @@ q[2][1]=q[1][2]=tmp;
|
|||||||
|
|
||||||
//numeric_limits not available on some crosscompilers for small MCUs
|
//numeric_limits not available on some crosscompilers for small MCUs
|
||||||
#ifdef QUAT_NO_DOUBLE
|
#ifdef QUAT_NO_DOUBLE
|
||||||
|
#define NO_NUMERIC_LIMITS
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef NO_NUMERIC_LIMITS
|
||||||
#define DBL_EPSILON 1.19209290e-07f
|
#define DBL_EPSILON 1.19209290e-07f
|
||||||
#else
|
#else
|
||||||
#define DBL_EPSILON std::numeric_limits<T>::epsilon()
|
#define DBL_EPSILON std::numeric_limits<T>::epsilon()
|
||||||
|
Loading…
Reference in New Issue
Block a user