]> granicus.if.org Git - vim/commitdiff
patch 8.1.0287: MAX is not defined everywhere v8.1.0287
authorBram Moolenaar <Bram@vim.org>
Tue, 14 Aug 2018 20:08:25 +0000 (22:08 +0200)
committerBram Moolenaar <Bram@vim.org>
Tue, 14 Aug 2018 20:08:25 +0000 (22:08 +0200)
Problem:    MAX is not defined everywhere.
Solution:   Define MAX where needed.

src/ex_getln.c
src/version.c

index 4af390440988f84e18a2ccc893e185fa35270f09..d38fa4b0231a193fbb8c29da8ea1f53e7af1a607 100644 (file)
 
 #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
index 23bcbf83e1234b3738a6248b4e9082ff4c59ddb1..efc214caba94a4b2bf77ea09873e064b0c417a7c 100644 (file)
@@ -794,6 +794,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    287,
 /**/
     286,
 /**/