From 10a3e3fec9d0e37ebe16ba381b48a73a924b8d5d Mon Sep 17 00:00:00 2001 From: mazmazz Date: Mon, 24 Dec 2018 20:36:28 -0500 Subject: [PATCH] Define EPSILONs only if not already defined Fixes OSX buildbot --- src/doomdef.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/doomdef.h b/src/doomdef.h index 27b946149..d63c50381 100644 --- a/src/doomdef.h +++ b/src/doomdef.h @@ -411,8 +411,13 @@ INT32 I_GetKey(void); #endif // Floating point comparison epsilons from float.h +#ifndef FLT_EPSILON #define FLT_EPSILON 1.1920928955078125e-7f +#endif + +#ifndef DBL_EPSILON #define DBL_EPSILON 2.2204460492503131e-16 +#endif // An assert-type mechanism. #ifdef PARANOIA