From: Bram Moolenaar Date: Tue, 14 Aug 2018 20:08:25 +0000 (+0200) Subject: patch 8.1.0287: MAX is not defined everywhere X-Git-Tag: v8.1.0287 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=37b15568c26e669c333903a70422eacc09488f79;p=thirdparty%2Fvim.git patch 8.1.0287: MAX is not defined everywhere Problem: MAX is not defined everywhere. Solution: Define MAX where needed. --- diff --git a/src/ex_getln.c b/src/ex_getln.c index 4af3904409..d38fa4b023 100644 --- a/src/ex_getln.c +++ b/src/ex_getln.c @@ -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 diff --git a/src/version.c b/src/version.c index 23bcbf83e1..efc214caba 100644 --- a/src/version.c +++ b/src/version.c @@ -794,6 +794,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 287, /**/ 286, /**/