patch 9.0.0491: no good reason to build without the float feature
Problem: No good reason to build without the float feature.
Solution: Remove configure check for float and "#ifdef FEAT_FLOAT".
diff --git a/src/profiler.c b/src/profiler.c
index 9c9fa9d..03348df 100644
--- a/src/profiler.c
+++ b/src/profiler.c
@@ -90,23 +90,21 @@
return buf;
}
-# if defined(FEAT_FLOAT) || defined(PROTO)
/*
* Return a float that represents the time in "tm".
*/
float_T
profile_float(proftime_T *tm)
{
-# ifdef MSWIN
+# ifdef MSWIN
LARGE_INTEGER fr;
QueryPerformanceFrequency(&fr);
return (float_T)tm->QuadPart / (float_T)fr.QuadPart;
-# else
+# else
return (float_T)tm->tv_sec + (float_T)tm->tv_usec / 1000000.0;
-# endif
-}
# endif
+}
/*
* Put the time "msec" past now in "tm".
@@ -173,7 +171,7 @@
# endif // FEAT_PROFILE || FEAT_RELTIME
-#if defined(FEAT_SYN_HL) && defined(FEAT_RELTIME) && defined(FEAT_FLOAT) && defined(FEAT_PROFILE)
+#if defined(FEAT_SYN_HL) && defined(FEAT_RELTIME) && defined(FEAT_PROFILE)
# if defined(HAVE_MATH_H)
# include <math.h>
# endif