mirror of
https://git.code.sf.net/p/quake/newtree
synced 2025-06-02 18:11:12 +00:00
added uniform #ifdef _xxx_H encapsulation and appropriate includes to avoid header dependencies and circular conflicts
(work in progress, need to clean .c files as well)
This commit is contained in:
parent
4a5ffaed66
commit
440b2aec18
41 changed files with 315 additions and 171 deletions
|
@ -22,6 +22,22 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|||
#ifndef _CLIENT_H
|
||||
#define _CLIENT_H
|
||||
|
||||
// since all headers are circular-protected with #ifdef _xxx_H
|
||||
// try to get them self-sufficient by including whatever other
|
||||
// headers they might need
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#include "common.h"
|
||||
#include "mathlib.h"
|
||||
#include "protocol.h"
|
||||
#include "zone.h"
|
||||
#include "net.h"
|
||||
#include "model.h"
|
||||
#include "sound.h"
|
||||
#include "render.h"
|
||||
#include "cvar.h"
|
||||
|
||||
typedef struct
|
||||
{
|
||||
char name[16];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue