cleanup the includes in host.h

This commit is contained in:
Bill Currie 2000-12-30 03:23:31 +00:00
parent 5197a6443d
commit 5f21837c33
6 changed files with 41 additions and 28 deletions

View file

@ -29,7 +29,9 @@
#ifndef _QUAKEDEF_H
#define _QUAKEDEF_H
#include "commdef.h"
#include "gcc_attr.h"
#include "qtypes.h"
#define QUAKE_GAME // as opposed to utilities
@ -39,26 +41,12 @@
#pragma warning( disable : 4244 4127 4201 4214 4514 4305 4115 4018)
#endif
// FIXME: clean those includes -- yan
#include <math.h>
#include <string.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <setjmp.h>
#include <time.h>
#include "qtypes.h"
#include "cvar.h"
#include "commdef.h"
#define MAX_NUM_ARGVS 50
extern qboolean noclip_anglehack;
extern cvar_t *sys_ticrate;
extern cvar_t *password;
extern struct cvar_s *sys_ticrate;
extern struct cvar_s *password;
extern double host_frametime; // Tonik
@ -66,8 +54,9 @@ extern byte *host_basepal;
extern byte *host_colormap;
extern int host_framecount; // incremented every frame, never reset
extern qboolean msg_suppress_1; // Suppresses resolution and cache size console
// output and fullscreen DIB focus gain/loss
extern qboolean msg_suppress_1; // Suppresses resolution and cache size
// console output and fullscreen DIB focus
// gain/loss
void Host_ServerFrame (void);
void Host_InitCommands (void);

View file

@ -41,6 +41,9 @@
#ifdef HAVE_WINSOCK_H
#include <winsock.h>
#endif
#ifdef HAVE_SETJMP_H
#include <setjmp.h>
#endif
#include "bothdefs.h"
#include "buildnum.h"

View file

@ -30,6 +30,19 @@
# include "config.h"
#endif
#ifdef HAVE_STRING_H
#include <string.h>
#endif
#ifdef HAVE_STRINGS_H
#include <strings.h>
#endif
#ifdef HAVE_ERRNO_H
#include <errno.h>
#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#include "bothdefs.h"
#include "cdaudio.h"
#include "cl_ents.h"
@ -51,16 +64,6 @@
#include "va.h"
#include "view.h"
#ifdef HAVE_STRINGS_H
#include <strings.h>
#endif
#ifdef HAVE_ERRNO_H
#include <errno.h>
#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
extern cvar_t *gl_flashblend;
extern cvar_t *cl_autoexec;

View file

@ -31,6 +31,12 @@
#endif
#include <stdlib.h>
#ifdef HAVE_STRING_H
#include <string.h>
#endif
#ifdef HAVE_STRINGS_H
#include <strings.h>
#endif
#include "cmd.h"
#include "console.h"

View file

@ -39,6 +39,12 @@
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_STRING_H
#include <string.h>
#endif
#ifdef HAVE_STRINGS_H
#include <strings.h>
#endif
#include "cl_input.h"
#include "cl_main.h"

View file

@ -37,6 +37,12 @@
#include <unistd.h>
#include <sys/stat.h>
#include <sys/time.h>
#ifdef HAVE_STRING_H
#include <string.h>
#endif
#ifdef HAVE_STRINGS_H
#include <strings.h>
#endif
#include "cvar.h"
#include "host.h"