Add missing include guards

This commit is contained in:
l2ksolkov 2023-05-28 20:29:24 -07:00 committed by Christoph Oelckers
parent acfe82b9a8
commit 245dac814e
17 changed files with 17 additions and 3 deletions

View file

@ -1,3 +1,4 @@
#pragma once
#include <string> #include <string>
#include "zstring.h" #include "zstring.h"

View file

@ -32,6 +32,7 @@
**--------------------------------------------------------------------------- **---------------------------------------------------------------------------
** **
*/ */
#pragma once
#include <limits.h> #include <limits.h>
#include <stdio.h> #include <stdio.h>

View file

@ -1,3 +1,4 @@
#pragma once
const char* UnicodeToString(const char* cc); const char* UnicodeToString(const char* cc);
const char* StringToUnicode(const char* cc, int size = -1); const char* StringToUnicode(const char* cc, int size = -1);

View file

@ -1,3 +1,4 @@
#pragma once
#include "files.h" #include "files.h"
#include "engineerrors.h" #include "engineerrors.h"

View file

@ -10,6 +10,7 @@
// winres.h - Windows resource definitions // winres.h - Windows resource definitions
// extracted from WINUSER.H and COMMCTRL.H // extracted from WINUSER.H and COMMCTRL.H
#pragma once
#ifdef _AFX_MINREBUILD #ifdef _AFX_MINREBUILD
#pragma component(minrebuild, off) #pragma component(minrebuild, off)

View file

@ -1,4 +1,4 @@
#pragma once
#include "tarray.h" #include "tarray.h"
#include "hwrenderer/data/buffers.h" #include "hwrenderer/data/buffers.h"

View file

@ -1,4 +1,4 @@
#pragma once
#include "jit.h" #include "jit.h"
#include "types.h" #include "types.h"

View file

@ -24,6 +24,7 @@ Prepared for public release: 03/21/2003 - Charlie Wiederhold, 3D Realms
Modifications for JonoF's port by Jonathon Fowler (jf@jonof.id.au) Modifications for JonoF's port by Jonathon Fowler (jf@jonof.id.au)
*/ */
//------------------------------------------------------------------------- //-------------------------------------------------------------------------
#pragma once
#include <stdint.h> #include <stdint.h>
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////

View file

@ -19,6 +19,7 @@
//#ifdef WIN32 //#ifdef WIN32
//#define DLL __declspec(dllexport) //#define DLL __declspec(dllexport)
//#else //#else
#pragma once
#define DLL #define DLL
//#endif //#endif

View file

@ -31,6 +31,7 @@
**--------------------------------------------------------------------------- **---------------------------------------------------------------------------
** **
*/ */
#pragma once
#include <stdlib.h> #include <stdlib.h>
#include <stdint.h> #include <stdint.h>

View file

@ -19,6 +19,7 @@
// defcvars loader split from d_main.cpp // defcvars loader split from d_main.cpp
// //
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
#pragma once
#define SHOULD_BLACKLIST(name) \ #define SHOULD_BLACKLIST(name) \
if (#name[0]==CurrentFindCVar[0]) \ if (#name[0]==CurrentFindCVar[0]) \

View file

@ -1,3 +1,4 @@
#pragma once
#include <stddef.h> #include <stddef.h>
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>

View file

@ -1,4 +1,5 @@
// This is separate because the files being compiled with it use different compiler settings which may affect how the header is compiled // This is separate because the files being compiled with it use different compiler settings which may affect how the header is compiled
#pragma once
#include <stddef.h> #include <stddef.h>
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>

View file

@ -1,6 +1,7 @@
// //
// Globally visible constants. // Globally visible constants.
// //
#pragma once
#define HU_FONTSTART uint8_t('!') // the first font characters #define HU_FONTSTART uint8_t('!') // the first font characters
#define HU_FONTEND uint8_t('\377') // the last font characters #define HU_FONTEND uint8_t('\377') // the last font characters

View file

@ -30,6 +30,7 @@
**--------------------------------------------------------------------------- **---------------------------------------------------------------------------
** **
*/ */
#pragma once
void UpdateVanillaTransparency(); void UpdateVanillaTransparency();

View file

@ -1,4 +1,4 @@
#pragma once
#include "tarray.h" #include "tarray.h"
#include "r_defs.h" #include "r_defs.h"
struct vertex_t; struct vertex_t;

View file

@ -31,6 +31,7 @@
**--------------------------------------------------------------------------- **---------------------------------------------------------------------------
** **
*/ */
#pragma once
#include "textures.h" #include "textures.h"
#include "texturemanager.h" #include "texturemanager.h"