Fixed compilation of non-Windows targets
These are quick hacks to be improved later
This commit is contained in:
parent
52be9895b7
commit
8129afdd1f
2 changed files with 4 additions and 7 deletions
|
|
@ -172,12 +172,6 @@ static FILE *mktempfile_internal(const char *tmpdir, const char *pfx, FString *t
|
|||
{ /* Success, so return user a proper ANSI C file pointer */
|
||||
fp = FDOPEN_(fd, "w+b");
|
||||
errno = 0;
|
||||
|
||||
#ifndef _WIN32
|
||||
/* [Unix only] And make sure the file will be deleted once closed */
|
||||
if (!keep) remove(tmpname);
|
||||
#endif
|
||||
|
||||
}
|
||||
else
|
||||
{ /* We failed */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue