mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-16 17:01:53 +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
|
#ifdef HAVE_STRINGS_H
|
||||||
# include <strings.h>
|
# include <strings.h>
|
||||||
#endif
|
#endif
|
||||||
#include <alloca.h>
|
#ifdef HAVE_ALLOCA_H
|
||||||
|
# include <alloca.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "compat.h"
|
#include "compat.h"
|
||||||
|
|
||||||
|
|
|
@ -56,6 +56,7 @@
|
||||||
#include <QF/qendian.h>
|
#include <QF/qendian.h>
|
||||||
#include <QF/quakeio.h>
|
#include <QF/quakeio.h>
|
||||||
#include <QF/sys.h>
|
#include <QF/sys.h>
|
||||||
|
#include <QF/va.h>
|
||||||
#include <QF/zone.h>
|
#include <QF/zone.h>
|
||||||
|
|
||||||
#include "lmp.h"
|
#include "lmp.h"
|
||||||
|
@ -90,7 +91,7 @@ replaceExtension (const char *oldstr, const char *extension)
|
||||||
char *newstr;
|
char *newstr;
|
||||||
|
|
||||||
*blank = 0;
|
*blank = 0;
|
||||||
asprintf (&newstr, "%s.%s", tmp, extension);
|
newstr = nva ("%s.%s", tmp, extension);
|
||||||
free (tmp);
|
free (tmp);
|
||||||
return newstr;
|
return newstr;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue