From a3805a0a6771e282026bf3c4783bea1cdba58556 Mon Sep 17 00:00:00 2001 From: Goraf <22941576+Goraf@users.noreply.github.com> Date: Sun, 25 Feb 2018 00:41:47 +0100 Subject: add missed guards for header files --- plugins/ExternalAPI/m_autobackups.h | 2 ++ plugins/ExternalAPI/m_cln_skinedit.h | 1 + plugins/ExternalAPI/m_fingerprint.h | 4 +++- plugins/ExternalAPI/m_messagestate.h | 2 ++ plugins/ExternalAPI/m_nudge.h | 2 ++ plugins/ExternalAPI/m_skinbutton.h | 2 ++ plugins/ExternalAPI/m_splash.h | 2 ++ plugins/ExternalAPI/m_winterspeak.h | 4 ++-- plugins/ExternalAPI/m_xpTheme.h | 2 ++ plugins/helpers/commonheaders.h | 2 ++ 10 files changed, 20 insertions(+), 3 deletions(-) diff --git a/plugins/ExternalAPI/m_autobackups.h b/plugins/ExternalAPI/m_autobackups.h index 95b0813647..dc0b3cda52 100644 --- a/plugins/ExternalAPI/m_autobackups.h +++ b/plugins/ExternalAPI/m_autobackups.h @@ -15,6 +15,8 @@ not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +#pragma once + // Backup database menu item #define MS_AB_BACKUP "AB/Backup" diff --git a/plugins/ExternalAPI/m_cln_skinedit.h b/plugins/ExternalAPI/m_cln_skinedit.h index b98be9b2ba..c5c9d49585 100644 --- a/plugins/ExternalAPI/m_cln_skinedit.h +++ b/plugins/ExternalAPI/m_cln_skinedit.h @@ -1,3 +1,4 @@ +#pragma once /* * services diff --git a/plugins/ExternalAPI/m_fingerprint.h b/plugins/ExternalAPI/m_fingerprint.h index 3048242925..a7de242da0 100644 --- a/plugins/ExternalAPI/m_fingerprint.h +++ b/plugins/ExternalAPI/m_fingerprint.h @@ -28,7 +28,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * FINGERPRINT PLUGIN SERVICES HEADER */ -/* +#pragma once + + /* * Service SameClientsW MS_FP_SAMECLIENTSW * wParam - LPCWSTR first MirVer value * lParam - LPCWSTR second MirVer value diff --git a/plugins/ExternalAPI/m_messagestate.h b/plugins/ExternalAPI/m_messagestate.h index a69772f698..d3dbf5b4a7 100644 --- a/plugins/ExternalAPI/m_messagestate.h +++ b/plugins/ExternalAPI/m_messagestate.h @@ -1,3 +1,5 @@ +#pragma once + struct MessageReadData { DWORD dw_lastTime; diff --git a/plugins/ExternalAPI/m_nudge.h b/plugins/ExternalAPI/m_nudge.h index 8067499145..5da1bfcfe3 100644 --- a/plugins/ExternalAPI/m_nudge.h +++ b/plugins/ExternalAPI/m_nudge.h @@ -1,3 +1,5 @@ +#pragma once + // protocol service that sends a nudge #define PS_SEND_NUDGE "/SendNudge" diff --git a/plugins/ExternalAPI/m_skinbutton.h b/plugins/ExternalAPI/m_skinbutton.h index 1ca5c38e6d..427eb20b9c 100644 --- a/plugins/ExternalAPI/m_skinbutton.h +++ b/plugins/ExternalAPI/m_skinbutton.h @@ -1,3 +1,5 @@ +#pragma once + #include "m_button.h" #define MBM_UPDATETRANSPARENTFLAG WM_USER+52 diff --git a/plugins/ExternalAPI/m_splash.h b/plugins/ExternalAPI/m_splash.h index 3652e6a72b..f6ac174d3b 100644 --- a/plugins/ExternalAPI/m_splash.h +++ b/plugins/ExternalAPI/m_splash.h @@ -1,3 +1,5 @@ +#pragma once + // Shows splash image // wParam = (char *) image filename, either relative to Miranda dir or absolute // lParam = (int) time to display in milliseconds, 0 - infinite (hangs on screen until clicked) diff --git a/plugins/ExternalAPI/m_winterspeak.h b/plugins/ExternalAPI/m_winterspeak.h index 3c0d418012..9d5a18bb39 100644 --- a/plugins/ExternalAPI/m_winterspeak.h +++ b/plugins/ExternalAPI/m_winterspeak.h @@ -1,4 +1,4 @@ - +#pragma once #define MS_SPEAK_STATUS "Speak/Status" -#define MS_SPEAK_MESSAGE "Speak/Message" \ No newline at end of file +#define MS_SPEAK_MESSAGE "Speak/Message" diff --git a/plugins/ExternalAPI/m_xpTheme.h b/plugins/ExternalAPI/m_xpTheme.h index 90925470f4..2a39da5ab5 100644 --- a/plugins/ExternalAPI/m_xpTheme.h +++ b/plugins/ExternalAPI/m_xpTheme.h @@ -1,3 +1,5 @@ +#pragma once + /* Wrapper for XP theme */ typedef void * XPTHANDLE; typedef HANDLE HTHEME; diff --git a/plugins/helpers/commonheaders.h b/plugins/helpers/commonheaders.h index d66f2b4978..b523e0bdd1 100644 --- a/plugins/helpers/commonheaders.h +++ b/plugins/helpers/commonheaders.h @@ -22,6 +22,8 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +#pragma once + #if defined( UNICODE ) && !defined( _UNICODE ) # define _UNICODE #endif -- cgit v1.2.3