fix #includes to compile on non windows without pch

This commit is contained in:
Jonathan Gray 2013-04-28 11:09:47 +10:00
parent da3e7050ef
commit 16ff91d807
30 changed files with 47 additions and 38 deletions

View File

@ -7,7 +7,7 @@
Ghoul2 Insert Start
*/
#include "../game/q_shared.h"
#include "../ghoul2/g2.h"
#include "../ghoul2/G2.h"
/*
Ghoul2 Insert end
*/

View File

@ -4,7 +4,7 @@
#include "cg_local.h"
#include "fx_local.h"
#include "../ghoul2/g2.h"
#include "../ghoul2/G2.h"
#include "../ui/ui_shared.h"
// for the voice chats

View File

@ -2,7 +2,7 @@
//
// cg_players.c -- handle the media and animation for player entities
#include "cg_local.h"
#include "../ghoul2/g2.h"
#include "../ghoul2/G2.h"
extern stringID_table_t animTable [MAX_ANIMATIONS+1];

View File

@ -1,5 +1,5 @@
#include "cg_local.h"
#include "bg_saga.h"
#include "../game/bg_saga.h"
#define DEFAULT_WIN_OBJECTIVE "sound/chars/kyle/prototype/personal.mp3"
#define DEFAULT_LOSE_OBJECTIVE "sound/chars/kyle/prototype/isntworking.mp3"

View File

@ -1,6 +1,6 @@
#include "cg_local.h"
#include "../game/q_shared.h"
#include "../ghoul2/g2.h"
#include "../ghoul2/G2.h"
//rww - The turret is heavily dependant on bone angles. We can't happily set that on the server, so it is done client-only.

View File

@ -1,5 +1,5 @@
#include "client.h"
#include "FXScheduler.h"
#include "FxScheduler.h"
int FX_RegisterEffect(const char *file)

View File

@ -1,7 +1,7 @@
#include "client.h"
#if !defined(G2_H_INC)
#include "../ghoul2/g2_local.h"
#include "../ghoul2/G2_local.h"
#endif
#if !defined(FX_SCHEDULER_H_INC)

View File

@ -8,10 +8,10 @@
#include "FXExport.h"
#endif
#include "FXutil.h"
#include "FxUtil.h"
#if !defined(CROFFSYSTEM_H_INC)
#include "../qcommon/ROFFSystem.h"
#include "../qcommon/RoffSystem.h"
#endif
#ifdef _DONETPROFILE_

View File

@ -11,7 +11,7 @@
#ifdef G2_COLLISION_ENABLED
#if !defined (MINIHEAP_H_INC)
#include "../qcommon/miniheap.h"
#include "../qcommon/MiniHeap.h"
#endif
#endif

View File

@ -2,7 +2,7 @@
#include "client.h"
#include "../qcommon/strip.h"
#include "../ghoul2/g2_local.h"
#include "../ghoul2/G2_local.h"
#ifdef _DONETPROFILE_
#include "../qcommon/INetProfile.h"
#endif

View File

@ -9,11 +9,18 @@
#include "../mp3code/mp3struct.h"
// Open AL Specific
#ifdef _WIN32
#include "openal/al.h"
#include "openal/alc.h"
#include <objbase.h>
#ifdef HAVE_EAX
#include "eax/eax.h"
#include "eax/eaxman.h"
#endif
#else
#include <AL/al.h>
#include <AL/alc.h>
#endif
// Added for Open AL to know when to mute all sounds (e.g when app. loses focus)
void S_MuteAllSounds(bool bMute);

View File

@ -1,7 +1,7 @@
// Copyright (C) 1999-2000 Id Software, Inc.
//
#include "g_local.h"
#include "../ghoul2/g2.h"
#include "../ghoul2/G2.h"
// g_client.c -- client functions that don't happen every frame

View File

@ -1,7 +1,7 @@
#include "g_local.h"
#include "w_saber.h"
#include "ai_main.h"
#include "../ghoul2/g2.h"
#include "../ghoul2/G2.h"
#define METROID_JUMP 1

View File

@ -2,7 +2,7 @@
#include "bg_local.h" //Only because we use PM_SetAnim here once.
#include "w_saber.h"
#include "ai_main.h"
#include "../ghoul2/g2.h"
#include "../ghoul2/G2.h"
#define SABER_BOX_SIZE 16.0f

View File

@ -16,7 +16,7 @@
#include "G2_local.h"
#ifdef G2_COLLISION_ENABLED
#include "../qcommon/miniheap.h"
#include "../qcommon/MiniHeap.h"
#endif
#include <set>
@ -1370,4 +1370,4 @@ void G2API_AddSkinGore(CGhoul2Info_v &ghoul2,SSkinGoreData &gore)
G2_TraceModels(ghoul2, transHitLocation, transRayDirection, 0, gore.entNum, 0, lod);
}
}
#endif _SOF2
#endif _SOF2

View File

@ -14,7 +14,7 @@
#include "../qcommon/qcommon.h"
#endif
#include "../renderer/MatComp.h"
#include "../renderer/matcomp.h"
#if !defined(G2_H_INC)
#include "G2.h"
@ -1238,4 +1238,4 @@ int G2_Get_Bone_Index(CGhoul2Info *ghoul2, const char *boneName)
model_t *mod_a = R_GetModelByHandle(mod_m->mdxm->animIndex);
return (G2_Find_Bone(mod_a, ghoul2->mBlist, boneName));
}
}

View File

@ -11,14 +11,14 @@
#include "../renderer/tr_local.h"
#endif
#include "../renderer/MatComp.h"
#include "../renderer/matcomp.h"
#if !defined(G2_H_INC)
#include "G2.h"
#endif
#if !defined (MINIHEAP_H_INC)
#include "../qcommon/miniheap.h"
#include "../qcommon/MiniHeap.h"
#endif
#include "../server/server.h"

View File

@ -70,6 +70,11 @@
#include <stdio.h>
#ifndef WIN32
#include <stdint.h>
typedef int32_t INT32;
#endif
/*
* We need memory copying and zeroing functions, plus strncpy().
* ANSI and System V implementations declare these in <string.h>.

View File

@ -10,6 +10,10 @@
#include "small_header.h" // for SAMPLE and IN_OUT
#ifndef byte
typedef unsigned char byte;
#endif
typedef void (*SBT_FUNCTION) (float *sample, short *pcm, int n);
typedef void (*XFORM_FUNCTION) (void *pcm, int igr);
typedef IN_OUT(*DECODE_FUNCTION) (unsigned char *bs, unsigned char *pcm);

View File

@ -151,13 +151,6 @@ decode (standard decoder) reduction_code:
#include "mp3struct.h"
#include <assert.h>
#ifndef byte
typedef unsigned char byte;
#endif
typedef struct id3v1_1 {
char id[3];
char title[30]; // <file basename>

View File

@ -1,4 +1,4 @@
#include "ROFFSystem.h"
#include "RoffSystem.h"
#include "qcommon.h"
#include "../client/client.h"

View File

@ -1,4 +1,4 @@
#include "MatComp.h"
#include "matcomp.h"
#include <assert.h>
#include <math.h>
#include <stdio.h>

View File

@ -10,7 +10,7 @@
#include "tr_local.h"
#endif
#include "MatComp.h"
#include "matcomp.h"
#if !defined(_QCOMMON_H_)
#include "../qcommon/qcommon.h"
#endif
@ -18,7 +18,7 @@
#include "../ghoul2/G2.h"
#endif
#include "../ghoul2/G2_local.h"
#include "MatComp.h"
#include "matcomp.h"
#pragma warning (disable: 4512) //default assignment operator could not be gened
#include "../qcommon/disablewarnings.h"

View File

@ -12,7 +12,7 @@
#ifdef G2_COLLISION_ENABLED
#if !defined (MINIHEAP_H_INC)
#include "../qcommon/miniheap.h"
#include "../qcommon/MiniHeap.h"
#endif
#include "../ghoul2/G2_local.h"

View File

@ -4,7 +4,7 @@
//#include "../server/exe_headers.h"
#include "tr_local.h"
#include "tr_QuickSprite.h"
#include "tr_quicksprite.h"
void R_BindAnimatedImage( textureBundle_t *bundle );

View File

@ -5,7 +5,7 @@
#include "../ghoul2/G2.h"
#endif
#include "../ghoul2/G2_local.h"
#include "MatComp.h"
#include "matcomp.h"
#pragma warning (disable: 4512) //default assignment operator could not be gened
#include "../qcommon/disablewarnings.h"

View File

@ -2,7 +2,7 @@
#include "tr_local.h"
#include "tr_QuickSprite.h"
#include "tr_quicksprite.h"
/*

View File

@ -2,7 +2,7 @@
#include "tr_local.h"
#include "tr_QuickSprite.h"
#include "tr_quicksprite.h"
#include "tr_WorldEffects.h"

View File

@ -6,7 +6,7 @@
#include "../qcommon/strip.h"
#if !defined(CROFFSYSTEM_H_INC)
#include "../qcommon/ROFFSystem.h"
#include "../qcommon/RoffSystem.h"
#endif
#if !defined(G2_H_INC)

View File

@ -11,7 +11,7 @@ Ghoul2 Insert Start
#ifdef G2_COLLISION_ENABLED
#if !defined (MINIHEAP_H_INC)
#include "../qcommon/miniheap.h"
#include "../qcommon/MiniHeap.h"
#endif
#endif