mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 8.2.2042: build failure with +profile but without +reltime
Problem: Build failure with +profile but without +reltime. Solution: Adjust #ifdef. (Christian Brabandt, closes #7361)
This commit is contained in:
@@ -6707,7 +6707,7 @@ syntime_report(void)
|
||||
{
|
||||
int idx;
|
||||
synpat_T *spp;
|
||||
# ifdef FEAT_FLOAT
|
||||
# if defined(FEAT_RELTIME) && defined(FEAT_FLOAT)
|
||||
proftime_T tm;
|
||||
# endif
|
||||
int len;
|
||||
@@ -6737,7 +6737,7 @@ syntime_report(void)
|
||||
p->match = spp->sp_time.match;
|
||||
total_count += spp->sp_time.count;
|
||||
p->slowest = spp->sp_time.slowest;
|
||||
# ifdef FEAT_FLOAT
|
||||
# if defined(FEAT_RELTIME) && defined(FEAT_FLOAT)
|
||||
profile_divide(&spp->sp_time.total, spp->sp_time.count, &tm);
|
||||
p->average = tm;
|
||||
# endif
|
||||
|
@@ -750,6 +750,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
2042,
|
||||
/**/
|
||||
2041,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user