mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-18 06:51:47 +00:00
mingw compile fixes
This commit is contained in:
parent
e236dd8842
commit
0a4caac3c6
5 changed files with 11 additions and 9 deletions
|
@ -354,7 +354,7 @@ I_CDAudio_Update (void)
|
|||
static void
|
||||
I_CD_f (void)
|
||||
{
|
||||
char *command;
|
||||
const char *command;
|
||||
int ret;
|
||||
int n;
|
||||
|
||||
|
|
|
@ -53,6 +53,8 @@
|
|||
#include "QF/qtypes.h"
|
||||
#include "QF/sys.h"
|
||||
|
||||
#include "compat.h"
|
||||
|
||||
#ifdef HAVE_CURSES_H
|
||||
static int use_curses = 1;
|
||||
|
||||
|
|
|
@ -333,7 +333,7 @@ Sys_InitFloatTime (void)
|
|||
}
|
||||
|
||||
|
||||
char *
|
||||
const char *
|
||||
Sys_ConsoleInput (void)
|
||||
{
|
||||
static char text[256];
|
||||
|
@ -502,7 +502,7 @@ WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine,
|
|||
|
||||
parms.argv = argv;
|
||||
|
||||
COM_InitArgv (parms.argc, parms.argv);
|
||||
COM_InitArgv (parms.argc, (const char**)parms.argv);
|
||||
|
||||
parms.argc = com_argc;
|
||||
parms.argv = com_argv;
|
||||
|
@ -633,6 +633,6 @@ WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine,
|
|||
}
|
||||
|
||||
void
|
||||
Sys_DebugLog (char *file, char *fmt, ...)
|
||||
Sys_DebugLog (const char *file, const char *fmt, ...)
|
||||
{
|
||||
}
|
||||
|
|
|
@ -84,7 +84,7 @@ void Sys_PushFPCW_SetHigh (void);
|
|||
|
||||
|
||||
void
|
||||
Sys_DebugLog (char *file, char *fmt, ...)
|
||||
Sys_DebugLog (const char *file, const char *fmt, ...)
|
||||
{
|
||||
va_list argptr;
|
||||
static char data[1024];
|
||||
|
@ -226,7 +226,7 @@ Sys_Quit (void)
|
|||
}
|
||||
|
||||
|
||||
char *
|
||||
const char *
|
||||
Sys_ConsoleInput (void)
|
||||
{
|
||||
static char text[256];
|
||||
|
@ -412,7 +412,7 @@ WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine,
|
|||
|
||||
host_parms.argv = argv;
|
||||
|
||||
COM_InitArgv (host_parms.argc, host_parms.argv);
|
||||
COM_InitArgv (host_parms.argc, (const char**)host_parms.argv);
|
||||
|
||||
host_parms.argc = com_argc;
|
||||
host_parms.argv = com_argv;
|
||||
|
|
|
@ -74,7 +74,7 @@ Sys_Error (const char *error, ...)
|
|||
/*
|
||||
Sys_ConsoleInput
|
||||
*/
|
||||
char *
|
||||
const char *
|
||||
Sys_ConsoleInput (void)
|
||||
{
|
||||
static char text[256];
|
||||
|
@ -170,7 +170,7 @@ Sys_Init (void)
|
|||
char *newargv[256];
|
||||
|
||||
int
|
||||
main (int argc, char **argv)
|
||||
main (int argc, const char **argv)
|
||||
{
|
||||
double newtime, time, oldtime;
|
||||
struct timeval timeout;
|
||||
|
|
Loading…
Reference in a new issue