Skip to content

Commit

Permalink
Adds missing header guards
Browse files Browse the repository at this point in the history
  • Loading branch information
tomsons26 committed Jun 27, 2024
1 parent 8000d0a commit 30bb5e3
Show file tree
Hide file tree
Showing 28 changed files with 29 additions and 0 deletions.
1 change: 1 addition & 0 deletions common/audio.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
* Functions: *
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

#pragma once
#include "wwstd.h"

/*=========================================================================*/
Expand Down
1 change: 1 addition & 0 deletions common/base64.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,6 @@
* Functions: *
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

#pragma once
int Base64_Encode(void const* source, int slen, void* dest, int dlen);
int Base64_Decode(void const* source, int slen, void* dest, int dlen);
1 change: 1 addition & 0 deletions common/dipthong.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
// GNU General Public License along with permitted additional restrictions
// with this program. If not, see https://github.com/electronicarts/CnC_Remastered_Collection

#pragma once
int Dip_Text(char const* source, char* dest);
int UnDip_Text(char const* source, char* dest);
char* Extract_String(void const* data, int string);
Expand Down
1 change: 1 addition & 0 deletions common/fakesock.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
* Functions: *
* *
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
#pragma once
#ifndef _WIN32

class TcpipManagerClass
Expand Down
1 change: 1 addition & 0 deletions common/filepcx.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
;* int Write_PCX_File (char* name, GraphicViewPortClass& pic, BYTE* palette );*
;*= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =*/

#pragma once
#include <string.h>
#include "buffer.h"
#include "file.h"
Expand Down
1 change: 1 addition & 0 deletions common/modemreg.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
// GNU General Public License along with permitted additional restrictions
// with this program. If not, see https://github.com/electronicarts/CnC_Remastered_Collection

#pragma once
class ModemRegistryEntryClass
{

Expand Down
1 change: 1 addition & 0 deletions common/sdl_keymap.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#pragma once
/*
** Standard US ANSI keyboard layout for SDL
*/
Expand Down
1 change: 1 addition & 0 deletions common/soundint.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
* Functions: *
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

#pragma once
#include "sound.h"
#include <dsound.h>

Expand Down
1 change: 1 addition & 0 deletions common/soundio_imp.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#pragma once
#include <stddef.h>

struct SampleTrackerTypeImp;
Expand Down
1 change: 1 addition & 0 deletions common/wincomm.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
* *
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

#pragma once
#ifdef _WIN32
#include <windows.h>

Expand Down
1 change: 1 addition & 0 deletions common/wwalloc.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
// with this program. If not, see https://github.com/electronicarts/CnC_Remastered_Collection

/* $Header: F:\projects\c&c0\vcs\code\wwalloc.h_v 4.9 07 May 1996 17:14:00 JOE_BOSTIC $ */
#pragma once

/*
** This should be located in the wwlib32.h file, but is located here for
Expand Down
1 change: 1 addition & 0 deletions common/wwkeyboard_sdl1.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#pragma once
#include "wwkeyboard.h"

class WWKeyboardClassSDL1 : public WWKeyboardClass
Expand Down
1 change: 1 addition & 0 deletions common/wwkeyboard_sdl2.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#pragma once
#include "wwkeyboard.h"

class WWKeyboardClassSDL2 : public WWKeyboardClass
Expand Down
1 change: 1 addition & 0 deletions common/wwkeyboard_win32.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#pragma once
#include "wwkeyboard.h"

class WWKeyboardClassWin32 : public WWKeyboardClass
Expand Down
1 change: 1 addition & 0 deletions redalert/bigcheck.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// distributed with this program. You should have received a copy of the
// GNU General Public License along with permitted additional restrictions
// with this program. If not, see https://github.com/electronicarts/CnC_Remastered_Collection
#pragma once

// Bigcheck.h
// ajw 9/14/98
Expand Down
1 change: 1 addition & 0 deletions redalert/conquer.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// distributed with this program. You should have received a copy of the
// GNU General Public License along with permitted additional restrictions
// with this program. If not, see https://github.com/electronicarts/CnC_Remastered_Collection
#pragma once

/*
** Retail strings (including demo)
Expand Down
1 change: 1 addition & 0 deletions redalert/dialog.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// distributed with this program. You should have received a copy of the
// GNU General Public License along with permitted additional restrictions
// with this program. If not, see https://github.com/electronicarts/CnC_Remastered_Collection
#pragma once

#include "common/wwstd.h"

Expand Down
1 change: 1 addition & 0 deletions redalert/dibutil.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// distributed with this program. You should have received a copy of the
// GNU General Public License along with permitted additional restrictions
// with this program. If not, see https://github.com/electronicarts/CnC_Remastered_Collection
#pragma once

/*
* dibutil.h
Expand Down
2 changes: 2 additions & 0 deletions redalert/egos.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
* *
* *
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
#pragma once

class GraphicBufferClass;

class EgoClass
Expand Down
1 change: 1 addition & 0 deletions redalert/iconlist.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// distributed with this program. You should have received a copy of the
// GNU General Public License along with permitted additional restrictions
// with this program. If not, see https://github.com/electronicarts/CnC_Remastered_Collection
#pragma once

#ifdef WOLAPI_INTEGRATION

Expand Down
1 change: 1 addition & 0 deletions redalert/language.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// distributed with this program. You should have received a copy of the
// GNU General Public License along with permitted additional restrictions
// with this program. If not, see https://github.com/electronicarts/CnC_Remastered_Collection
#pragma once

#ifdef ENGLISH
#define TEXT_ERROR_TIMER \
Expand Down
1 change: 1 addition & 0 deletions redalert/rawolapi.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// distributed with this program. You should have received a copy of the
// GNU General Public License along with permitted additional restrictions
// with this program. If not, see https://github.com/electronicarts/CnC_Remastered_Collection
#pragma once

#ifdef WOLAPI_INTEGRATION

Expand Down
1 change: 1 addition & 0 deletions redalert/seditdlg.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// distributed with this program. You should have received a copy of the
// GNU General Public License along with permitted additional restrictions
// with this program. If not, see https://github.com/electronicarts/CnC_Remastered_Collection
#pragma once

#ifdef WOLAPI_INTEGRATION

Expand Down
1 change: 1 addition & 0 deletions redalert/tooltip.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// distributed with this program. You should have received a copy of the
// GNU General Public License along with permitted additional restrictions
// with this program. If not, see https://github.com/electronicarts/CnC_Remastered_Collection
#pragma once

// ToolTip.h

Expand Down
1 change: 1 addition & 0 deletions redalert/wolstrng.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// distributed with this program. You should have received a copy of the
// GNU General Public License along with permitted additional restrictions
// with this program. If not, see https://github.com/electronicarts/CnC_Remastered_Collection
#pragma once

// Wolstrng.h - this will presumably go away eventually.

Expand Down
1 change: 1 addition & 0 deletions tiberiandawn/conquer.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// distributed with this program. You should have received a copy of the
// GNU General Public License along with permitted additional restrictions
// with this program. If not, see https://github.com/electronicarts/CnC_Remastered_Collection
#pragma once

#define TXT_NONE 0 //
#define TXT_CREDIT_FORMAT 1 // %3d.%02d
Expand Down
1 change: 1 addition & 0 deletions tiberiandawn/debug.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// distributed with this program. You should have received a copy of the
// GNU General Public License along with permitted additional restrictions
// with this program. If not, see https://github.com/electronicarts/CnC_Remastered_Collection
#pragma once

#define TXT_NONE_DEBUG 0x3e8 //
#define TXTED_BLANK 0x3e9 // ____
Expand Down
1 change: 1 addition & 0 deletions tiberiandawn/textblit.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// distributed with this program. You should have received a copy of the
// GNU General Public License along with permitted additional restrictions
// with this program. If not, see https://github.com/electronicarts/CnC_Remastered_Collection
#pragma once

#define MAX_ENTRIES 128

Expand Down

0 comments on commit 30bb5e3

Please sign in to comment.