mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 04:42:32 +00:00
add WildCode's error checking for win32 cpp handling
This commit is contained in:
parent
72d1343735
commit
e3ad60f142
1 changed files with 5 additions and 1 deletions
|
@ -199,7 +199,11 @@ preprocess_file (const char *filename)
|
|||
|
||||
{
|
||||
FILE *tmp = fopen (tempname->str, "wt");
|
||||
|
||||
if (tmp == NULL) {
|
||||
fprintf (stderr, "%s: qfcc was unable to open\n",
|
||||
tempname->str);
|
||||
exit(1);
|
||||
}
|
||||
fclose (tmp);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue