Permalink
Browse files

patch 8.0.0866: Solaris also doesn't have MIN and MAX

Problem:    Solaris also doesn't have MIN and MAX.
Solution:   Define MIN and MAX whenever they are not defined. (Ozaki Kiichi,
            closes #1939)
  • Loading branch information...
brammool committed Aug 5, 2017
1 parent 8456ea8 commit d53109886bc9c4fa7a9c9a402c90fe349b2dd7ac
Showing with 7 additions and 3 deletions.
  1. +5 −3 src/terminal.c
  2. +2 −0 src/version.c
View
@@ -92,9 +92,11 @@
#if defined(FEAT_TERMINAL) || defined(PROTO)
#ifdef WIN3264
# define MIN(x,y) (x < y ? x : y)
# define MAX(x,y) (x > y ? x : y)
#ifndef MIN
# define MIN(x,y) ((x) < (y) ? (x) : (y))
#endif
#ifndef MAX
# define MAX(x,y) ((x) > (y) ? (x) : (y))
#endif
#include "libvterm/include/vterm.h"
View
@@ -769,6 +769,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
866,
/**/
865,
/**/

0 comments on commit d531098

Please sign in to comment.