From a00468da807494409651768721070b618186a666 Mon Sep 17 00:00:00 2001 From: cloudwalk Date: Thu, 31 Dec 2020 19:31:35 +0000 Subject: [PATCH] Add missing include guards. Formatting improvement git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@13083 d7cf8633-e32d-0410-b094-e92efae38249 --- model_hlmdl.h | 11 ++++++++--- model_vbsp.h | 5 +++++ vpk.h | 5 +++++ 3 files changed, 18 insertions(+), 3 deletions(-) diff --git a/model_hlmdl.h b/model_hlmdl.h index 58fde4e4..125afd54 100644 --- a/model_hlmdl.h +++ b/model_hlmdl.h @@ -18,6 +18,12 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +#ifndef MODEL_HLMDL_H +#define MODEL_HLMDL_H + +#include "qtypes.h" +#include "qdefs.h" + /* * The Half-Life MDL format is Valve's format for models in GoldSrc engine. * @@ -25,9 +31,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * https://github.com/malortie/assimp/wiki/MDL:-Half-Life-1-file-format */ -#include "qtypes.h" -#include "qdefs.h" - #define HLPOLYHEADER (('T' << 24) + ('S' << 16) + ('D' << 8) + 'I') #define HLMDLHEADER "IDST" #define HLSEQHEADER "IDSQ" @@ -242,3 +245,5 @@ typedef struct dhlmdl_trivert_s int16_t normindex; int16_t s, t; } dhlmdl_trivert_t; + +#endif diff --git a/model_vbsp.h b/model_vbsp.h index c350e653..a4466c3a 100644 --- a/model_vbsp.h +++ b/model_vbsp.h @@ -18,6 +18,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +#ifndef MODEL_VBSP_H +#define MODEL_VBSP_H + #include "qtypes.h" #include "qdefs.h" @@ -154,3 +157,5 @@ typedef struct hl2dheader_s hl2lump_t lumps[HL2HEADER_LUMPS]; int32_t revision; } hl2dheader_t; + +#endif diff --git a/vpk.h b/vpk.h index 4271ab30..7e572a93 100644 --- a/vpk.h +++ b/vpk.h @@ -18,6 +18,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +#ifndef VPK_H +#define VPK_H + #include "qtypes.h" #include "qdefs.h" @@ -96,3 +99,5 @@ typedef struct dvpk_signature_entry_s uint32_t signaturesize; // Always 128 int8_t signature[128]; } dvpk_signature_entry_t; + +#endif -- 2.39.2