From 46b88235a1959704e5ee6ae2ed3ae2bd6aee59df Mon Sep 17 00:00:00 2001 From: "nethack.allison" Date: Mon, 2 Sep 2002 14:29:57 +0000 Subject: [PATCH] Borland bits (from Yitzhak) --- include/ntconf.h | 1 + src/files.c | 4 ++-- sys/winnt/Makefile.bcc | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/include/ntconf.h b/include/ntconf.h index 4dec2eb00..a002a6b53 100644 --- a/include/ntconf.h +++ b/include/ntconf.h @@ -140,6 +140,7 @@ char _FAR * _RTLENTRY _EXPFUNC getcwd( char _FAR *__buf, int __buflen ); int _RTLENTRY _EXPFUNC write (int __handle, const void _FAR *__buf, unsigned __len); int _RTLENTRY _EXPFUNC creat (const char _FAR *__path, int __amode); int _RTLENTRY _EXPFUNC close (int __handle); +int _RTLENTRY _EXPFUNC _close (int __handle); int _RTLENTRY _EXPFUNC open (const char _FAR *__path, int __access,... /*unsigned mode*/); long _RTLENTRY _EXPFUNC lseek (int __handle, long __offset, int __fromwhere); int _RTLENTRY _EXPFUNC read (int __handle, void _FAR *__buf, unsigned __len); diff --git a/src/files.c b/src/files.c index afe838eaf..7aaf60762 100644 --- a/src/files.c +++ b/src/files.c @@ -544,13 +544,13 @@ int lev, oflag; lftrack.nethack_thinks_it_is_open = TRUE; } else { really_close(); - fd = sopen(name, oflag,_SH_DENYRW, FCMASK); + fd = sopen(name, oflag,SH_DENYRW, FCMASK); lftrack.fd = fd; lftrack.oflag = oflag; lftrack.nethack_thinks_it_is_open = TRUE; } } else { - fd = sopen(name, oflag,_SH_DENYRW, FCMASK); + fd = sopen(name, oflag,SH_DENYRW, FCMASK); lftrack.fd = fd; lftrack.oflag = oflag; if (fd) diff --git a/sys/winnt/Makefile.bcc b/sys/winnt/Makefile.bcc index 99209db7e..eb1f2bec1 100644 --- a/sys/winnt/Makefile.bcc +++ b/sys/winnt/Makefile.bcc @@ -67,7 +67,7 @@ rc = $(bccbin)\brc32 link = $(bccbin)\ilink32 implib = $(bccbin)\tlib -cflags = -c -D_X86_=1 -DWINVER=$(MAKE_WINVER) -q -I$(bccinc) -w-pia -w-rch -w-par -w-aus +cflags = -c -D_X86_=1 -DWINVER=$(MAKE_WINVER) -q -I$(bccinc) -w-pia -w-rch -w-csu -w-par -w-aus cdebug = -y -v -O2 cvarsmt = -DWIN32 -D_WIN32 -D_MT lflags = -- 2.40.0