From dff565f40105b20b0e8e4dba1f48ccc9b8e7ff44 Mon Sep 17 00:00:00 2001 From: Goraf <22941576+Goraf@users.noreply.github.com> Date: Fri, 23 Feb 2018 22:36:25 +0100 Subject: guard headers --- plugins/AutoShutdown/src/cpuusage.h | 2 ++ plugins/AutoShutdown/src/frame.h | 2 ++ plugins/AutoShutdown/src/options.h | 2 ++ plugins/AutoShutdown/src/settingsdlg.h | 2 ++ plugins/AutoShutdown/src/shutdownsvc.h | 2 ++ plugins/AutoShutdown/src/stdafx.h | 2 ++ plugins/AutoShutdown/src/utils.h | 2 ++ plugins/AutoShutdown/src/watcher.h | 2 ++ 8 files changed, 16 insertions(+) (limited to 'plugins/AutoShutdown') diff --git a/plugins/AutoShutdown/src/cpuusage.h b/plugins/AutoShutdown/src/cpuusage.h index 681a2c8213..f10ead7d9e 100644 --- a/plugins/AutoShutdown/src/cpuusage.h +++ b/plugins/AutoShutdown/src/cpuusage.h @@ -19,6 +19,8 @@ along with this program (Shutdown-License.txt); if not, write to the Free Softwa Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +#pragma once + /* Start Thread */ typedef BOOL (CALLBACK* CPUUSAGEAVAILPROC)(BYTE nCpuUsage,LPARAM lParam); DWORD PollCpuUsage(CPUUSAGEAVAILPROC pfnDataAvailProc,LPARAM lParam,DWORD dwDelayMillis); diff --git a/plugins/AutoShutdown/src/frame.h b/plugins/AutoShutdown/src/frame.h index 1b0bffdafd..e8f642bbe8 100644 --- a/plugins/AutoShutdown/src/frame.h +++ b/plugins/AutoShutdown/src/frame.h @@ -19,6 +19,8 @@ along with this program (Shutdown-License.txt); if not, write to the Free Softwa Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +#pragma once + /* Show Frame */ void ShowCountdownFrame(WORD fTimeFlags); void CloseCountdownFrame(void); diff --git a/plugins/AutoShutdown/src/options.h b/plugins/AutoShutdown/src/options.h index 8b8e63f04f..d5e735f7f0 100644 --- a/plugins/AutoShutdown/src/options.h +++ b/plugins/AutoShutdown/src/options.h @@ -19,6 +19,8 @@ along with this program (Shutdown-License.txt); if not, write to the Free Softwa Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +#pragma once + /* Misc */ void InitOptions(void); void UninitOptions(void); diff --git a/plugins/AutoShutdown/src/settingsdlg.h b/plugins/AutoShutdown/src/settingsdlg.h index 1521812f30..ec9846be55 100644 --- a/plugins/AutoShutdown/src/settingsdlg.h +++ b/plugins/AutoShutdown/src/settingsdlg.h @@ -19,6 +19,8 @@ along with this program (Shutdown-License.txt); if not, write to the Free Softwa Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +#pragma once + /* Menu Item */ void SetShutdownMenuItem(bool fActive); diff --git a/plugins/AutoShutdown/src/shutdownsvc.h b/plugins/AutoShutdown/src/shutdownsvc.h index 639d02a7fa..52afee5c57 100644 --- a/plugins/AutoShutdown/src/shutdownsvc.h +++ b/plugins/AutoShutdown/src/shutdownsvc.h @@ -19,6 +19,8 @@ along with this program (Shutdown-License.txt); if not, write to the Free Softwa Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +#pragma once + /* Services */ INT_PTR ServiceShutdown(WPARAM wParam,LPARAM lParam); INT_PTR ServiceIsTypeEnabled(WPARAM wParam,LPARAM lParam); diff --git a/plugins/AutoShutdown/src/stdafx.h b/plugins/AutoShutdown/src/stdafx.h index be9415d830..716ee02ec9 100644 --- a/plugins/AutoShutdown/src/stdafx.h +++ b/plugins/AutoShutdown/src/stdafx.h @@ -19,6 +19,8 @@ along with this program (Shutdown-License.txt); if not, write to the Free Softwa Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +#pragma once + #include /* for mktime(),time() */ #include #include diff --git a/plugins/AutoShutdown/src/utils.h b/plugins/AutoShutdown/src/utils.h index d3ccaabae7..8ae39f0d9e 100644 --- a/plugins/AutoShutdown/src/utils.h +++ b/plugins/AutoShutdown/src/utils.h @@ -19,6 +19,8 @@ along with this program (Shutdown-License.txt); if not, write to the Free Softwa Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +#pragma once + /* String */ WCHAR *a2u(const char *pszAnsi); char *u2a(const WCHAR *pszUnicode); diff --git a/plugins/AutoShutdown/src/watcher.h b/plugins/AutoShutdown/src/watcher.h index 157fc93bd1..0132a541dc 100644 --- a/plugins/AutoShutdown/src/watcher.h +++ b/plugins/AutoShutdown/src/watcher.h @@ -19,6 +19,8 @@ along with this program (Shutdown-License.txt); if not, write to the Free Softwa Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +#pragma once + /* Services */ INT_PTR ServiceStartWatcher(WPARAM wParam,LPARAM lParam); INT_PTR ServiceStopWatcher(WPARAM wParam,LPARAM lParam); -- cgit v1.2.3