]> granicus.if.org Git - nethack/commitdiff
Borland bits (from Yitzhak)
authornethack.allison <nethack.allison>
Mon, 2 Sep 2002 14:29:57 +0000 (14:29 +0000)
committernethack.allison <nethack.allison>
Mon, 2 Sep 2002 14:29:57 +0000 (14:29 +0000)
include/ntconf.h
src/files.c
sys/winnt/Makefile.bcc

index 4dec2eb00875f2f2bf0f333264552cdc90eafd3f..a002a6b539223059096af996eed1a8bdaa83de51 100644 (file)
@@ -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);
index afe838eafe0462e395026812f268366f8a678e5e..7aaf607629e735c37e289404cec32e9d1a8c0034 100644 (file)
@@ -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)
index 99209db7e07203df3270e3cd53eb1c6b2bc6128b..eb1f2bec10b0047cb98b21a73a22a0116ccc98f0 100644 (file)
@@ -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  =