From 982accb98fd986985a458daa0ca7ba79d0576c8b Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Sun, 15 Oct 1995 00:35:36 +0000 Subject: [PATCH] Fix conditionalizations to support EMX/GCC and Watcom C/C++ under OS/2. --- v7/src/microcode/bchdmp.c | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/v7/src/microcode/bchdmp.c b/v7/src/microcode/bchdmp.c index 490baa658..b88310654 100644 --- a/v7/src/microcode/bchdmp.c +++ b/v7/src/microcode/bchdmp.c @@ -1,6 +1,6 @@ /* -*-C-*- -$Id: bchdmp.c,v 9.80 1995/10/09 05:52:16 cph Exp $ +$Id: bchdmp.c,v 9.81 1995/10/15 00:35:36 cph Exp $ Copyright (c) 1987-95 Massachusetts Institute of Technology @@ -95,13 +95,20 @@ static char FASDUMP_FILENAME[] = "\\tmp\\faXXXXXX"; #endif /* WINNT */ #ifdef _OS2 + #include "os2.h" +#define FASDUMP_FILENAME_DEFINED +static char FASDUMP_FILENAME[] = "\\tmp\\faXXXXXX"; + +#ifdef __EMX__ +#include +#endif + +#if defined(__IBMC__) || defined(__WATCOMC__) -#if defined(__IBMC__) || defined(__EMX__) #include #include #include -#endif #ifndef F_OK #define F_OK 0 @@ -142,8 +149,7 @@ DEFUN (mktemp, (fname), unsigned char * fname) return ((char *) fname); } -#define FASDUMP_FILENAME_DEFINED -static char FASDUMP_FILENAME[] = "\\tmp\\faXXXXXX"; +#endif /* __IBMC__ or __WATCOMC__ */ #endif /* _OS2 */ #ifndef FASDUMP_FILENAME_DEFINED -- 2.25.1