summaryrefslogtreecommitdiffstats
path: root/src/bufwrite.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-12-15 12:54:18 +0100
committerBram Moolenaar <Bram@vim.org>2019-12-15 12:54:18 +0100
commit95f0b6e5a5e5861da34cc064c601faf4eeed4ed6 (patch)
treee8b7414262ec23f9d5954f3008c936c8cf8c839a /src/bufwrite.c
parent3e2d1c8cd61ca073e680f3b221ce887e05ba39cf (diff)
patch 8.2.0009: VMS: terminal version doesn't buildv8.2.0009
Problem: VMS: terminal version doesn't build. Solution: Move MIN definition. Adjust #ifdefs. (Zoltan Arpadffy)
Diffstat (limited to 'src/bufwrite.c')
-rw-r--r--src/bufwrite.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/bufwrite.c b/src/bufwrite.c
index 8393df1a0c..f1895518b3 100644
--- 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))
{