From 245aba81e4e60b309f217db636087f785fed883a Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Fri, 7 Jan 2000 02:20:31 +0000 Subject: [PATCH] Under NT, always use native I/O, independent of the compiler in use. --- v7/src/microcode/option.c | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/v7/src/microcode/option.c b/v7/src/microcode/option.c index c3c4ac57d..dc40f0662 100644 --- a/v7/src/microcode/option.c +++ b/v7/src/microcode/option.c @@ -1,6 +1,6 @@ /* -*-C-*- -$Id: option.c,v 1.51 2000/01/06 04:34:37 cph Exp $ +$Id: option.c,v 1.52 2000/01/07 02:20:31 cph Exp $ Copyright (c) 1990-2000 Massachusetts Institute of Technology @@ -28,12 +28,6 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. #include "osfs.h" #include -#if ((defined (WINNT)) && (defined (__WATCOMC__))) -#define USE_WINNT_NATIVE_IO -#include "nt.h" -#include "ntio.h" -#endif - extern char * getenv (); extern void free (); #define xfree(p) free ((PTR) (p)) @@ -44,6 +38,8 @@ extern int atoi (); #include #include #include +#include "nt.h" +#include "ntio.h" #else /* not WINNT */ #ifdef _POSIX @@ -1023,7 +1019,7 @@ DEFUN (read_band_header, (filename, header), CONST char * filename AND SCHEME_OBJECT * header) { -#ifdef USE_WINNT_NATIVE_IO +#ifdef WINNT HANDLE handle = (CreateFile (filename, @@ -1046,7 +1042,7 @@ DEFUN (read_band_header, (filename, header), CloseHandle (handle); return (1); -#else /* not USE_WINNT_NATIVE_IO */ +#else /* not WINNT */ FILE * stream = (fopen (filename, "r")); if (stream == 0) @@ -1060,7 +1056,7 @@ DEFUN (read_band_header, (filename, header), fclose (stream); return (1); -#endif /* not USE_WINNT_NATIVE_IO */ +#endif /* not WINNT */ } static int -- 2.25.1