mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-10 14:51:46 +00:00
- made tmpfileplus a .cpp file so that it can access ZDoom's own utility code.
This commit is contained in:
parent
8627a48b34
commit
4ca3acb0e3
2 changed files with 2 additions and 2 deletions
|
@ -1169,6 +1169,7 @@ set (PCH_SOURCES
|
|||
events.cpp
|
||||
GuillotineBinPack.cpp
|
||||
SkylineBinPack.cpp
|
||||
tmpfileplus.cpp
|
||||
)
|
||||
|
||||
enable_precompiled_headers( g_pch.h PCH_SOURCES )
|
||||
|
@ -1183,7 +1184,6 @@ add_executable( zdoom WIN32 MACOSX_BUNDLE
|
|||
${PCH_SOURCES}
|
||||
x86.cpp
|
||||
strnatcmp.c
|
||||
tmpfileplus.c
|
||||
zstring.cpp
|
||||
math/asin.c
|
||||
math/atan.c
|
||||
|
|
|
@ -217,7 +217,7 @@ static FILE *mktempfile_internal(const char *tmpdir, const char *pfx, char **tmp
|
|||
|
||||
lentempname = strlen(tmpdir) + strlen(FILE_SEPARATOR) + strlen(pfx) + strlen(randpart);
|
||||
DPRINTF1("lentempname=%d\n", lentempname);
|
||||
tmpname = malloc(lentempname + 1);
|
||||
tmpname = (char*)malloc(lentempname + 1);
|
||||
if (!tmpname)
|
||||
{
|
||||
errno = ENOMEM;
|
Loading…
Reference in a new issue