Mingw build fixes.

This commit is contained in:
Bill Currie 2011-03-27 08:26:42 +09:00
parent c8e1d7b45a
commit 1911cc1472
2 changed files with 5 additions and 2 deletions

View file

@ -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"

View file

@ -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;
}