diff --git a/common/audio.h b/common/audio.h index b292518a..bd8f243f 100644 --- a/common/audio.h +++ b/common/audio.h @@ -31,6 +31,7 @@ * Functions: * * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ +#pragma once #include "wwstd.h" /*=========================================================================*/ diff --git a/common/base64.h b/common/base64.h index 6ed1e332..4bcc8810 100644 --- a/common/base64.h +++ b/common/base64.h @@ -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); diff --git a/common/dipthong.h b/common/dipthong.h index 6d732ed1..7d94c371 100644 --- a/common/dipthong.h +++ b/common/dipthong.h @@ -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); diff --git a/common/fakesock.h b/common/fakesock.h index 27ab96e8..1f78b839 100644 --- a/common/fakesock.h +++ b/common/fakesock.h @@ -36,6 +36,7 @@ * Functions: * * * * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ +#pragma once #ifndef _WIN32 class TcpipManagerClass diff --git a/common/filepcx.h b/common/filepcx.h index 80b376cb..30b75d31 100644 --- a/common/filepcx.h +++ b/common/filepcx.h @@ -34,6 +34,7 @@ ;* int Write_PCX_File (char* name, GraphicViewPortClass& pic, BYTE* palette );* ;*= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =*/ +#pragma once #include #include "buffer.h" #include "file.h" diff --git a/common/modemreg.h b/common/modemreg.h index a86538a8..559593e0 100644 --- a/common/modemreg.h +++ b/common/modemreg.h @@ -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 { diff --git a/common/sdl_keymap.h b/common/sdl_keymap.h index d4aef21a..3c98cd7b 100644 --- a/common/sdl_keymap.h +++ b/common/sdl_keymap.h @@ -1,3 +1,4 @@ +#pragma once /* ** Standard US ANSI keyboard layout for SDL */ diff --git a/common/soundint.h b/common/soundint.h index 79fe8d05..d41d5c3b 100644 --- a/common/soundint.h +++ b/common/soundint.h @@ -34,6 +34,7 @@ * Functions: * * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ +#pragma once #include "sound.h" #include diff --git a/common/soundio_imp.h b/common/soundio_imp.h index 7fec7b76..6f0a4f3f 100644 --- a/common/soundio_imp.h +++ b/common/soundio_imp.h @@ -1,3 +1,4 @@ +#pragma once #include struct SampleTrackerTypeImp; diff --git a/common/wincomm.h b/common/wincomm.h index d70df755..823b083e 100644 --- a/common/wincomm.h +++ b/common/wincomm.h @@ -39,6 +39,7 @@ * * * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ +#pragma once #ifdef _WIN32 #include diff --git a/common/wwalloc.h b/common/wwalloc.h index c8827e7e..fb44f988 100644 --- a/common/wwalloc.h +++ b/common/wwalloc.h @@ -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 diff --git a/common/wwkeyboard_sdl1.h b/common/wwkeyboard_sdl1.h index 1757f812..28334f93 100644 --- a/common/wwkeyboard_sdl1.h +++ b/common/wwkeyboard_sdl1.h @@ -1,3 +1,4 @@ +#pragma once #include "wwkeyboard.h" class WWKeyboardClassSDL1 : public WWKeyboardClass diff --git a/common/wwkeyboard_sdl2.h b/common/wwkeyboard_sdl2.h index fac58d57..2c7e5471 100644 --- a/common/wwkeyboard_sdl2.h +++ b/common/wwkeyboard_sdl2.h @@ -1,3 +1,4 @@ +#pragma once #include "wwkeyboard.h" class WWKeyboardClassSDL2 : public WWKeyboardClass diff --git a/common/wwkeyboard_win32.h b/common/wwkeyboard_win32.h index eff1c277..ed58ab8e 100644 --- a/common/wwkeyboard_win32.h +++ b/common/wwkeyboard_win32.h @@ -1,3 +1,4 @@ +#pragma once #include "wwkeyboard.h" class WWKeyboardClassWin32 : public WWKeyboardClass diff --git a/redalert/bigcheck.h b/redalert/bigcheck.h index 18705d85..f5229b6b 100644 --- a/redalert/bigcheck.h +++ b/redalert/bigcheck.h @@ -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 diff --git a/redalert/conquer.h b/redalert/conquer.h index ec48f4b6..c41d85ba 100644 --- a/redalert/conquer.h +++ b/redalert/conquer.h @@ -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) diff --git a/redalert/dialog.h b/redalert/dialog.h index 71d7196d..7f29a31b 100644 --- a/redalert/dialog.h +++ b/redalert/dialog.h @@ -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" diff --git a/redalert/dibutil.h b/redalert/dibutil.h index 988ded1b..64b456cf 100644 --- a/redalert/dibutil.h +++ b/redalert/dibutil.h @@ -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 diff --git a/redalert/egos.h b/redalert/egos.h index 3bcb45c6..1572370b 100644 --- a/redalert/egos.h +++ b/redalert/egos.h @@ -37,6 +37,8 @@ * * * * * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ +#pragma once + class GraphicBufferClass; class EgoClass diff --git a/redalert/iconlist.h b/redalert/iconlist.h index 52ee0032..6daacf26 100644 --- a/redalert/iconlist.h +++ b/redalert/iconlist.h @@ -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 diff --git a/redalert/language.h b/redalert/language.h index 8d7c29ed..50ea74d7 100644 --- a/redalert/language.h +++ b/redalert/language.h @@ -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 \ diff --git a/redalert/rawolapi.h b/redalert/rawolapi.h index bc6c72bd..f821581f 100644 --- a/redalert/rawolapi.h +++ b/redalert/rawolapi.h @@ -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 diff --git a/redalert/seditdlg.h b/redalert/seditdlg.h index 5e5db99a..e10932f6 100644 --- a/redalert/seditdlg.h +++ b/redalert/seditdlg.h @@ -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 diff --git a/redalert/tooltip.h b/redalert/tooltip.h index 3680bb5d..f4d836ad 100644 --- a/redalert/tooltip.h +++ b/redalert/tooltip.h @@ -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 diff --git a/redalert/wolstrng.h b/redalert/wolstrng.h index 8ea33a8f..78a07d62 100644 --- a/redalert/wolstrng.h +++ b/redalert/wolstrng.h @@ -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. diff --git a/tiberiandawn/conquer.h b/tiberiandawn/conquer.h index 6ff82925..4e9e16ad 100644 --- a/tiberiandawn/conquer.h +++ b/tiberiandawn/conquer.h @@ -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 diff --git a/tiberiandawn/debug.h b/tiberiandawn/debug.h index abbefc8f..6ab3e79c 100644 --- a/tiberiandawn/debug.h +++ b/tiberiandawn/debug.h @@ -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 // ____ diff --git a/tiberiandawn/textblit.h b/tiberiandawn/textblit.h index faf4fc52..e29c08a8 100644 --- a/tiberiandawn/textblit.h +++ b/tiberiandawn/textblit.h @@ -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