From 811193618b463de3dc44bb583274799b591657cb Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Tue, 24 Oct 1995 06:32:35 +0000 Subject: [PATCH] Changes to allow Win32 microcode to be compiled by the Watcom C compiler. --- v7/src/microcode/cmpauxmd/makefile | 4 ++-- v7/src/microcode/s/nt.m4 | 9 ++++----- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/v7/src/microcode/cmpauxmd/makefile b/v7/src/microcode/cmpauxmd/makefile index d1d41703c..be42adb02 100644 --- a/v7/src/microcode/cmpauxmd/makefile +++ b/v7/src/microcode/cmpauxmd/makefile @@ -2,7 +2,7 @@ # Makefile for i386 PC compiled code interface files # for the MIT Scheme microcode. # -# $Id: makefile,v 1.5 1995/10/24 06:28:49 cph Exp $ +# $Id: makefile,v 1.6 1995/10/24 06:32:35 cph Exp $ # all : i386-dos.asm i386-nt.asm i386-ntw.asm @@ -20,4 +20,4 @@ i386-nt.asm : i386.m4 ../s/nt.m4 # Expand for Win32 using Watcom compiler. i386-ntw.asm : i386.m4 ../s/nt.m4 rm -f $@ - ../s/nt.m4 "define(WCC386R,1)" < $< > $@ + ../s/nt.m4 -P "define(WCC386R,1)" < $< > $@ diff --git a/v7/src/microcode/s/nt.m4 b/v7/src/microcode/s/nt.m4 index fd5817ec2..a3d6596e5 100755 --- a/v7/src/microcode/s/nt.m4 +++ b/v7/src/microcode/s/nt.m4 @@ -1,18 +1,17 @@ #!/bin/csh -f ### -### $Id: nt.m4,v 1.1 1993/06/24 08:04:38 gjr Exp $ +### $Id: nt.m4,v 1.2 1995/10/24 06:29:51 cph Exp $ ### -### Copyright (c) 1993 Massachusetts Institute of Technology +### Copyright (c) 1993-95 Massachusetts Institute of Technology ### -#### Postprocessing to get valid nt assembly language from cmpauxmd/i386.m4 +### Processing to get Win32 assembly language from "i386.m4". set tmpfil = "m4.tmp" set seen_input = 0 rm -f "$tmpfil" echo changecom\(\`\;\'\) >> "$tmpfil" -echo "define(DOS,1)" >> "$tmpfil" -echo "define(WINNT,1)" >> "$tmpfil" +echo "define(WIN32,1)" >> "$tmpfil" while ($#argv != 0) if ("$argv[1]" == "-P") then echo "$argv[2]" >> "$tmpfil" -- 2.25.1