mingw compile fixes

This commit is contained in:
Bill Currie 2001-08-02 23:00:39 +00:00
parent e236dd8842
commit 0a4caac3c6
5 changed files with 11 additions and 9 deletions

View file

@ -354,7 +354,7 @@ I_CDAudio_Update (void)
static void
I_CD_f (void)
{
char *command;
const char *command;
int ret;
int n;

View file

@ -53,6 +53,8 @@
#include "QF/qtypes.h"
#include "QF/sys.h"
#include "compat.h"
#ifdef HAVE_CURSES_H
static int use_curses = 1;

View file

@ -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, ...)
{
}

View file

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

View file

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