bin2cpp: Remove fcloseall usage

fcloseall isn't available on macOS, and everything gets closed when the program exits anyways
This commit is contained in:
TellowKrinkle 2021-08-02 00:46:13 -05:00 committed by Kojin
parent 7ed0f38623
commit e17f83c2cf
1 changed files with 1 additions and 5 deletions

View File

@ -146,8 +146,7 @@ int main(int argc, char* argv[])
if( (dest=fopen( Dummy, "wb+" )) == NULL )
{
printf( "ERROR : I can't open destination file %s\n", Dummy );
(void)fcloseall();
return 0L;
return 1;
}
// ----------------------------------------------------------------------------
@ -195,7 +194,6 @@ int main(int argc, char* argv[])
if( ferror( dest ) )
{
printf( "ERROR writing on target file: %s\n", Dummy );
(void)fcloseall();
return 20L;
}
@ -219,8 +217,6 @@ int main(int argc, char* argv[])
fprintf(dest,"};\n");
fcloseall();
return 0;
}