mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-22 20:41:20 +00:00
Mingw build fixes.
This commit is contained in:
parent
c8e1d7b45a
commit
1911cc1472
2 changed files with 5 additions and 2 deletions
|
@ -40,7 +40,9 @@ static __attribute__ ((used)) const char rcsid[] = "$Id$";
|
|||
#ifdef HAVE_STRINGS_H
|
||||
# include <strings.h>
|
||||
#endif
|
||||
#include <alloca.h>
|
||||
#ifdef HAVE_ALLOCA_H
|
||||
# include <alloca.h>
|
||||
#endif
|
||||
|
||||
#include "compat.h"
|
||||
|
||||
|
|
|
@ -56,6 +56,7 @@
|
|||
#include <QF/qendian.h>
|
||||
#include <QF/quakeio.h>
|
||||
#include <QF/sys.h>
|
||||
#include <QF/va.h>
|
||||
#include <QF/zone.h>
|
||||
|
||||
#include "lmp.h"
|
||||
|
@ -90,7 +91,7 @@ replaceExtension (const char *oldstr, const char *extension)
|
|||
char *newstr;
|
||||
|
||||
*blank = 0;
|
||||
asprintf (&newstr, "%s.%s", tmp, extension);
|
||||
newstr = nva ("%s.%s", tmp, extension);
|
||||
free (tmp);
|
||||
return newstr;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue