Changed some header file from djgpp to mingw32

svn path=/trunk/; revision=260
This commit is contained in:
Boudewijn Dekker 1999-02-21 13:32:17 +00:00
parent 77ed4e360b
commit 38c0489092
2 changed files with 2 additions and 2 deletions

View file

@ -13,7 +13,7 @@
int _unlink( const char *filename ) int _unlink( const char *filename )
{ {
if ( !DeleteFile(filename) ) if ( !DeleteFileA(filename) )
return -1; return -1;
return 0; return 0;
} }

View file

@ -14,7 +14,7 @@
size_t _write(int _fd, const void *_buf, size_t _nbyte) size_t _write(int _fd, const void *_buf, size_t _nbyte)
{ {
size_t _wbyte; size_t _wbyte;
if ( !WriteFile(_get_osfhandle(_fd),_buf,_nbyte,&_wbyte,NULL) ) { if ( !WriteFile(_get_osfhandle(_fd),_buf,_nbyte,(DWORD *)&_wbyte,NULL) ) {
return -1; return -1;
} }
return _wbyte; return _wbyte;