diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-09-17 21:08:33 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-09-17 21:08:33 +0100 |
commit | 73e28dcc6125f616cf1f2d56443d22428a79e434 (patch) | |
tree | bc26b3d1bb2e1675b7dae14b6c9cda1cd42c90d6 /src/time.c | |
parent | 1c3dd8ddcba63c1af5112e567215b3cec2de11d0 (diff) |
patch 9.0.0491: no good reason to build without the float featurev9.0.0491
Problem: No good reason to build without the float feature.
Solution: Remove configure check for float and "#ifdef FEAT_FLOAT".
Diffstat (limited to 'src/time.c')
-rw-r--r-- | src/time.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/time.c b/src/time.c index 58337c9f65..901222c195 100644 --- a/src/time.c +++ b/src/time.c @@ -221,20 +221,19 @@ f_reltime(typval_T *argvars UNUSED, typval_T *rettv UNUSED) # endif } -# ifdef FEAT_FLOAT /* * "reltimefloat()" function */ void f_reltimefloat(typval_T *argvars UNUSED, typval_T *rettv) { -# ifdef FEAT_RELTIME +# ifdef FEAT_RELTIME proftime_T tm; -# endif +# endif rettv->v_type = VAR_FLOAT; rettv->vval.v_float = 0; -# ifdef FEAT_RELTIME +# ifdef FEAT_RELTIME if (in_vim9script() && check_for_list_arg(argvars, 0) == FAIL) return; @@ -242,9 +241,8 @@ f_reltimefloat(typval_T *argvars UNUSED, typval_T *rettv) rettv->vval.v_float = profile_float(&tm); else if (in_vim9script()) emsg(_(e_invalid_argument)); -# endif -} # endif +} /* * "reltimestr()" function |