mirror of
https://github.com/cc65/cc65.git
synced 2024-06-17 00:29:31 +00:00
commit
128f261c3a
|
@ -30,9 +30,7 @@ char *argv[];
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
/* Fake stdin with the reference file */
|
/* Fake stdin with the reference file */
|
||||||
fclose(stdin);
|
if (freopen(INFILE, "rb", stdin) == NULL) {
|
||||||
stdin = fopen(INFILE, "r");
|
|
||||||
if (stdin == NULL) {
|
|
||||||
return EXIT_FAILURE;
|
return EXIT_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user