comparison src/terminal.c @ 11971:2baa88d64217 v8.0.0866

patch 8.0.0866: Solaris also doesn't have MIN and MAX commit https://github.com/vim/vim/commit/d53109886bc9c4fa7a9c9a402c90fe349b2dd7ac Author: Bram Moolenaar <Bram@vim.org> Date: Sat Aug 5 15:16:32 2017 +0200 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)
author Christian Brabandt <cb@256bit.org>
date Sat, 05 Aug 2017 15:30:04 +0200
parents 12833414cc02
children 5cc005cf312f
comparison
equal deleted inserted replaced
11970:938a1e4f79d2 11971:2baa88d64217
90 90
91 #include "vim.h" 91 #include "vim.h"
92 92
93 #if defined(FEAT_TERMINAL) || defined(PROTO) 93 #if defined(FEAT_TERMINAL) || defined(PROTO)
94 94
95 #ifdef WIN3264 95 #ifndef MIN
96 # define MIN(x,y) (x < y ? x : y) 96 # define MIN(x,y) ((x) < (y) ? (x) : (y))
97 # define MAX(x,y) (x > y ? x : y) 97 #endif
98 #ifndef MAX
99 # define MAX(x,y) ((x) > (y) ? (x) : (y))
98 #endif 100 #endif
99 101
100 #include "libvterm/include/vterm.h" 102 #include "libvterm/include/vterm.h"
101 103
102 typedef struct sb_line_S { 104 typedef struct sb_line_S {