Use C stdio functions for score files and save files.
Switching from Unix file descriptor operations to C standard FILE* functions will reduce portability problems.
This commit is contained in:
parent
f8d1f422c8
commit
c661fd79d4
33 changed files with 426 additions and 439 deletions
|
|
@ -174,10 +174,10 @@ md_raw_standend(void)
|
|||
}
|
||||
|
||||
int
|
||||
md_unlink_open_file(char *file, int inf)
|
||||
md_unlink_open_file(char *file, FILE *inf)
|
||||
{
|
||||
#ifdef _WIN32
|
||||
_close(inf);
|
||||
fclose(inf);
|
||||
_chmod(file, 0600);
|
||||
return( _unlink(file) );
|
||||
#else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue