Skip to content

Commit 10b369f

Browse files
committed
patch 7.4.1467
Problem: Can't build without the float feature. Solution: Add #ifdefs. (Nick Owens, closes #667)
1 parent 6b584af commit 10b369f

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

src/eval.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8415,7 +8415,9 @@ static struct fst
84158415
{"range", 1, 3, f_range},
84168416
{"readfile", 1, 3, f_readfile},
84178417
{"reltime", 0, 2, f_reltime},
8418+
#ifdef FEAT_FLOAT
84188419
{"reltimefloat", 1, 1, f_reltimefloat},
8420+
#endif
84198421
{"reltimestr", 1, 1, f_reltimestr},
84208422
{"remote_expr", 2, 3, f_remote_expr},
84218423
{"remote_foreground", 1, 1, f_remote_foreground},

src/json.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -733,9 +733,9 @@ json_decode_item(js_read_T *reader, typval_T *res, int options)
733733
default:
734734
if (VIM_ISDIGIT(*p) || *p == '-')
735735
{
736+
#ifdef FEAT_FLOAT
736737
char_u *sp = p;
737738

738-
#ifdef FEAT_FLOAT
739739
if (*sp == '-')
740740
{
741741
++sp;

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -743,6 +743,8 @@ static char *(features[]) =
743743

744744
static int included_patches[] =
745745
{ /* Add new patch number below this line */
746+
/**/
747+
1467,
746748
/**/
747749
1466,
748750
/**/

0 commit comments

Comments
 (0)