0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 8.2.2986: build failure without the profile feature

Problem:    Build failure without the profile feature.
Solution:   Add #ifdef.
This commit is contained in:
Bram Moolenaar
2021-06-13 14:15:29 +02:00
parent e99d422bbd
commit d9f31c13d2
2 changed files with 6 additions and 2 deletions

View File

@@ -750,6 +750,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
2986,
/**/ /**/
2985, 2985,
/**/ /**/

View File

@@ -1871,10 +1871,12 @@ func_needs_compiling(ufunc_T *ufunc, compiletype_T compile_type)
switch (compile_type) switch (compile_type)
{ {
case CT_PROFILE:
#ifdef FEAT_PROFILE
return dfunc->df_instr_prof == NULL;
#endif
case CT_NONE: case CT_NONE:
return dfunc->df_instr == NULL; return dfunc->df_instr == NULL;
case CT_PROFILE:
return dfunc->df_instr_prof == NULL;
case CT_DEBUG: case CT_DEBUG:
return dfunc->df_instr_debug == NULL; return dfunc->df_instr_debug == NULL;
} }