From ef37c6bc604d4275224620584ba6171abcbba339 Mon Sep 17 00:00:00 2001 From: Alex Rodriguez Date: Mon, 4 Feb 2013 17:03:31 -0700 Subject: [PATCH] fix missing #define when UNIT_EXCLUDE_FLOAT is used --- src/unity.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/unity.c b/src/unity.c index bd9aa14..45aa89a 100644 --- a/src/unity.c +++ b/src/unity.c @@ -32,12 +32,14 @@ const char* UnityStrInf = "Infinity"; const char* UnityStrNegInf = "Negative Infinity"; const char* UnityStrNaN = "NaN"; +#ifndef UNITY_EXCLUDE_FLOAT // Dividing by these constants produces +/- infinity. // The rationale is given in UnityAssertFloatIsInf's body. static const _UF f_zero = 0.0f; #ifndef UNITY_EXCLUDE_DOUBLE static const _UD d_zero = 0.0; #endif +#endif // compiler-generic print formatting masks const _U_UINT UnitySizeMask[] =