0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.1.0287: MAX is not defined everywhere

Problem:    MAX is not defined everywhere.
Solution:   Define MAX where needed.
This commit is contained in:
Bram Moolenaar
2018-08-14 22:08:25 +02:00
parent 167ae42685
commit 37b15568c2
2 changed files with 6 additions and 0 deletions

View File

@@ -13,6 +13,10 @@
#include "vim.h"
#ifndef MAX
# define MAX(x,y) ((x) > (y) ? (x) : (y))
#endif
/*
* Variables shared between getcmdline(), redrawcmdline() and others.
* These need to be saved when using CTRL-R |, that's why they are in a