Mercurial > vim
diff src/bufwrite.c @ 18896:4481f3b29fc5 v8.2.0009
patch 8.2.0009: VMS: terminal version doesn't build
Commit: https://github.com/vim/vim/commit/95f0b6e5a5e5861da34cc064c601faf4eeed4ed6
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Dec 15 12:54:18 2019 +0100
patch 8.2.0009: VMS: terminal version doesn't build
Problem: VMS: terminal version doesn't build.
Solution: Move MIN definition. Adjust #ifdefs. (Zoltan Arpadffy)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 15 Dec 2019 13:00:04 +0100 |
parents | 788d76db02ac |
children | db18625d8134 |
line wrap: on
line diff
--- a/src/bufwrite.c +++ b/src/bufwrite.c @@ -2080,6 +2080,10 @@ restore_backup: // structures end with a newline (carriage return) character, and // if they don't it adds one. // With other RMS structures it works perfect without this fix. +# ifndef MIN +// Older DECC compiler for VAX doesn't define MIN() +# define MIN(a, b) ((a) < (b) ? (a) : (b)) +# endif if (buf->b_fab_rfm == FAB$C_VFC || ((buf->b_fab_rat & (FAB$M_FTN | FAB$M_CR)) != 0)) {