changeset 14548:806e1a2648c6 v8.1.0287

patch 8.1.0287: MAX is not defined everywhere commit https://github.com/vim/vim/commit/37b15568c26e669c333903a70422eacc09488f79 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Aug 14 22:08:25 2018 +0200 patch 8.1.0287: MAX is not defined everywhere Problem: MAX is not defined everywhere. Solution: Define MAX where needed.
author Christian Brabandt <cb@256bit.org>
date Tue, 14 Aug 2018 22:15:05 +0200
parents 7809f42bc09a
children 35d1645774eb
files src/ex_getln.c src/version.c
diffstat 2 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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
--- a/src/version.c
+++ b/src/version.c
@@ -795,6 +795,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    287,
+/**/
     286,
 /**/
     285,