summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGoraf <22941576+Goraf@users.noreply.github.com>2018-02-23 22:36:25 +0100
committerGoraf <22941576+Goraf@users.noreply.github.com>2018-02-24 18:20:43 +0100
commitdff565f40105b20b0e8e4dba1f48ccc9b8e7ff44 (patch)
tree091f564418533267369d993f554e939c7351f4d6 /plugins
parent1cd49f75aa0dd71a1df44a1740dd4c15fe5656cf (diff)
guard headers
Diffstat (limited to 'plugins')
-rw-r--r--plugins/AVS/src/stdafx.h2
-rw-r--r--plugins/AddContactPlus/src/stdafx.h2
-rw-r--r--plugins/AdvaImg/src/stdafx.h2
-rw-r--r--plugins/AssocMgr/src/assoclist.h2
-rw-r--r--plugins/AssocMgr/src/dde.h2
-rw-r--r--plugins/AssocMgr/src/reg.h2
-rw-r--r--plugins/AssocMgr/src/stdafx.h2
-rw-r--r--plugins/AssocMgr/src/test.h2
-rw-r--r--plugins/AssocMgr/src/utils.h2
-rw-r--r--plugins/AuthState/src/options.h2
-rw-r--r--plugins/AutoRun/src/stdafx.h2
-rw-r--r--plugins/AutoShutdown/src/cpuusage.h2
-rw-r--r--plugins/AutoShutdown/src/frame.h2
-rw-r--r--plugins/AutoShutdown/src/options.h2
-rw-r--r--plugins/AutoShutdown/src/settingsdlg.h2
-rw-r--r--plugins/AutoShutdown/src/shutdownsvc.h2
-rw-r--r--plugins/AutoShutdown/src/stdafx.h2
-rw-r--r--plugins/AutoShutdown/src/utils.h2
-rw-r--r--plugins/AutoShutdown/src/watcher.h2
-rw-r--r--plugins/AvatarHistory/src/stdafx.h2
-rw-r--r--plugins/BASS_interface/src/stdafx.h2
-rw-r--r--plugins/CSList/src/stdafx.h42
-rw-r--r--plugins/CSList/src/strpos.h4
-rw-r--r--plugins/ClientChangeNotify/src/Misc.h2
-rw-r--r--plugins/Clist_blind/src/clc.h2
-rw-r--r--plugins/Clist_blind/src/stdafx.h2
-rw-r--r--plugins/Clist_modern/src/modern_static_cluiframes_service.h2
-rw-r--r--plugins/Clist_nicer/src/alphablend.h2
-rw-r--r--plugins/Clist_nicer/src/clc.h2
-rw-r--r--plugins/Clist_nicer/src/clist.h2
-rw-r--r--plugins/Clist_nicer/src/extBackg.h2
-rw-r--r--plugins/Clist_nicer/src/stdafx.h2
-rw-r--r--plugins/Cln_skinedit/src/stdafx.h2
-rw-r--r--plugins/ConnectionNotify/src/netstat.h2
-rw-r--r--plugins/ConnectionNotify/src/stdafx.h2
-rw-r--r--plugins/Console/src/stdafx.h2
-rw-r--r--plugins/ContactsPlus/src/stdafx.h2
-rw-r--r--plugins/CountryFlags/src/stdafx.h2
-rw-r--r--plugins/CrashDumper/src/sdkstuff.h2
-rw-r--r--plugins/CrashDumper/src/stdafx.h2
-rw-r--r--plugins/CyrTranslit/src/stdafx.h2
-rw-r--r--plugins/Db3x_mmap/src/database.h1
-rw-r--r--plugins/Db3x_mmap/src/dbintf.h2
-rw-r--r--plugins/Db3x_mmap/src/stdafx.h2
-rw-r--r--plugins/Db3x_mmap/src/ui.h2
-rw-r--r--plugins/DbChecker/src/stdafx.h1
-rw-r--r--plugins/Db_autobackups/src/options.h2
-rw-r--r--plugins/Dbx_mdbx/src/dbintf.h2
-rw-r--r--plugins/Dbx_mdbx/src/stdafx.h2
-rw-r--r--plugins/Dbx_mdbx/src/ui.h2
-rw-r--r--plugins/ExternalAPI/m_smileyadd.h3
-rw-r--r--plugins/ExternalAPI/m_tipper.h3
-rw-r--r--plugins/FavContacts/src/stdafx.h2
-rw-r--r--plugins/FileAsMessage/src/dialog.h4
-rw-r--r--plugins/FileAsMessage/src/stdafx.h2
-rw-r--r--plugins/FingerprintNG/src/stdafx.h2
-rw-r--r--plugins/FloatingContacts/src/filedrop.h3
-rw-r--r--plugins/FloatingContacts/src/thumbs.h4
-rw-r--r--plugins/GmailNotifier/src/stdafx.h2
-rw-r--r--plugins/HTTPServer/src/MimeHandling.h2
-rw-r--r--plugins/HwHotKeys/src/stdafx.h2
-rw-r--r--plugins/Import/src/stdafx.h2
-rw-r--r--plugins/KeyboardNotify/src/EnumProc.h2
-rw-r--r--plugins/KeyboardNotify/src/constants.h2
-rw-r--r--plugins/KeyboardNotify/src/flash.h2
-rw-r--r--plugins/KeyboardNotify/src/ignore.h2
-rw-r--r--plugins/KeyboardNotify/src/keyboard.h2
-rw-r--r--plugins/KeyboardNotify/src/keypresses.h2
-rw-r--r--plugins/KeyboardNotify/src/protolist.h2
-rw-r--r--plugins/KeyboardNotify/src/stdafx.h2
-rw-r--r--plugins/KeyboardNotify/src/utils.h2
-rw-r--r--plugins/ListeningTo/src/players/foobar.h1
-rw-r--r--plugins/ListeningTo/src/players/generic.h2
-rw-r--r--plugins/ListeningTo/src/players/itunes.h2
-rw-r--r--plugins/ListeningTo/src/players/mradio.h2
-rw-r--r--plugins/ListeningTo/src/players/player.h2
-rw-r--r--plugins/ListeningTo/src/players/watrack.h2
-rw-r--r--plugins/ListeningTo/src/players/winamp.h2
-rw-r--r--plugins/ListeningTo/src/players/wmp.h2
-rw-r--r--plugins/LotusNotify/src/LotusNotify.h1
-rw-r--r--plugins/MimCmd/src/stdafx.h2
-rw-r--r--plugins/MirFox/src/MirFoxCommons/MirFoxCommons_pch.h1
-rw-r--r--plugins/MirFox/src/common.h2
-rw-r--r--plugins/MirLua/Modules/WinAPI/src/stdafx.h4
-rw-r--r--plugins/MirOTR/src/dbfilter.h4
-rw-r--r--plugins/MirandaG15/src/Miranda.h2
-rw-r--r--plugins/MsgPopup/src/options.h3
-rw-r--r--plugins/MsgPopup/src/stdafx.h2
-rw-r--r--plugins/NewAwaySysMod/src/Services.h2
-rw-r--r--plugins/NewEventNotify/src/stdafx.h2
-rw-r--r--plugins/New_GPG/src/metacontacts.h2
-rw-r--r--plugins/NewsAggregator/Src/stdafx.h2
-rw-r--r--plugins/NotesAndReminders/src/globals.h2
-rw-r--r--plugins/NotesAndReminders/src/miscutils.h2
-rw-r--r--plugins/NotifyAnything/src/stdafx.h2
-rw-r--r--plugins/Nudge/src/stdafx.h2
-rw-r--r--plugins/OpenFolder/src/stdafx.h2
-rw-r--r--plugins/OpenSSL/src/stdafx.h2
-rw-r--r--plugins/PackUpdater/Src/Notifications.h2
-rw-r--r--plugins/PackUpdater/Src/stdafx.h2
-rw-r--r--plugins/Ping/src/collection.h2
-rw-r--r--plugins/Ping/src/stdafx.h2
-rw-r--r--plugins/PluginUpdater/src/Notifications.h2
-rw-r--r--plugins/PluginUpdater/src/stdafx.h2
-rw-r--r--plugins/ProfileManager/src/stdafx.h2
-rw-r--r--plugins/QuickMessages/src/Utils.h3
-rw-r--r--plugins/QuickMessages/src/stdafx.h2
-rw-r--r--plugins/RecentContacts/src/stdafx.h2
-rw-r--r--plugins/RemovePersonalSettings/src/stdafx.h2
-rw-r--r--plugins/Restart/src/stdafx.h3
-rw-r--r--plugins/SeenPlugin/src/stdafx.h2
-rw-r--r--plugins/Sessions/Src/stdafx.h2
-rw-r--r--plugins/ShellExt/src/shlcom.h1
-rw-r--r--plugins/ShellExt/src/shlicons.h1
-rw-r--r--plugins/ShellExt/src/stdafx.h1
-rw-r--r--plugins/SimpleAR/src/stdafx.h2
-rw-r--r--plugins/SimpleStatusMsg/src/stdafx.h2
-rw-r--r--plugins/SkypeStatusChange/src/stdafx.h2
-rw-r--r--plugins/SmileyAdd/src/SmileyBase.h2
-rw-r--r--plugins/Spamotron/src/stdafx.h2
-rw-r--r--plugins/StartupSilence/src/stdafx.h2
-rw-r--r--plugins/StatusChange/src/stdafx.h2
-rwxr-xr-xplugins/StopSpamMod/src/globals.h2
-rwxr-xr-xplugins/StopSpamMod/src/stdafx.h2
-rwxr-xr-xplugins/StopSpamMod/src/stopspam.h1
-rwxr-xr-xplugins/StopSpamMod/src/utilities.h2
-rw-r--r--plugins/StopSpamPlus/src/settings.h1
-rw-r--r--plugins/TabSRMM/src/ImageDataObject.h2
-rw-r--r--plugins/TabSRMM/src/muchighlight.h2
-rw-r--r--plugins/TabSRMM/src/templates.h2
-rw-r--r--plugins/TabSRMM/src/typingnotify.h2
-rw-r--r--plugins/TipperYM/src/stdafx.h2
-rw-r--r--plugins/TooltipNotify/src/DbHelpers.h2
-rw-r--r--plugins/TooltipNotify/src/Settings.h2
-rw-r--r--plugins/TooltipNotify/src/Tooltip.h2
-rw-r--r--plugins/TooltipNotify/src/TooltipNotify.h2
-rw-r--r--plugins/TooltipNotify/src/Utils.h2
-rw-r--r--plugins/TooltipNotify/src/stdafx.h2
-rw-r--r--plugins/TopToolBar/src/BkgrCfg.h2
-rw-r--r--plugins/TrafficCounter/src/misc.h2
-rw-r--r--plugins/UserGuide/src/stdafx.h2
-rw-r--r--plugins/Variables/src/contact.h2
-rw-r--r--plugins/Variables/src/dbhelpers.h2
-rw-r--r--plugins/Variables/src/enumprocs.h2
-rw-r--r--plugins/Variables/src/parse_alias.h2
-rw-r--r--plugins/Variables/src/parse_external.h2
-rw-r--r--plugins/Variables/src/parse_inet.h2
-rw-r--r--plugins/Variables/src/parse_logic.h2
-rw-r--r--plugins/Variables/src/parse_math.h2
-rw-r--r--plugins/Variables/src/parse_metacontacts.h2
-rw-r--r--plugins/Variables/src/parse_miranda.h2
-rw-r--r--plugins/Variables/src/parse_regexp.h2
-rw-r--r--plugins/Variables/src/parse_str.h2
-rw-r--r--plugins/Variables/src/parse_system.h2
-rw-r--r--plugins/Variables/src/parse_variables.h2
-rw-r--r--plugins/Variables/src/parse_xml.h3
-rw-r--r--plugins/Variables/src/stdafx.h2
-rw-r--r--plugins/Weather/src/stdafx.h2
-rw-r--r--plugins/WebView/src/stdafx.h2
-rw-r--r--plugins/WebView/src/webview.h2
-rw-r--r--plugins/WhoUsesMyFiles/src/stdafx.h3
-rw-r--r--plugins/WinterSpeak/src/SpeakAnnounce.h1
-rw-r--r--plugins/WinterSpeak/src/stdafx.h9
-rw-r--r--plugins/WinterSpeak/src/voice_desc.h4
-rw-r--r--plugins/XSoundNotify/src/stdafx.h2
-rw-r--r--plugins/YARelay/src/stdafx.h2
-rw-r--r--plugins/ZeroNotification/src/stdafx.h2
-rw-r--r--plugins/ZeroSwitch/src/stdafx.h2
-rw-r--r--plugins/wbOSD/src/stdafx.h2
169 files changed, 353 insertions, 41 deletions
diff --git a/plugins/AVS/src/stdafx.h b/plugins/AVS/src/stdafx.h
index 973e916551..e0938155ad 100644
--- a/plugins/AVS/src/stdafx.h
+++ b/plugins/AVS/src/stdafx.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
+
#include <windows.h>
#include <commctrl.h>
#include <time.h>
diff --git a/plugins/AddContactPlus/src/stdafx.h b/plugins/AddContactPlus/src/stdafx.h
index 294eb721fb..9a34f137f5 100644
--- a/plugins/AddContactPlus/src/stdafx.h
+++ b/plugins/AddContactPlus/src/stdafx.h
@@ -19,6 +19,8 @@ with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
+#pragma once
+
#include <windows.h>
#include <commctrl.h>
diff --git a/plugins/AdvaImg/src/stdafx.h b/plugins/AdvaImg/src/stdafx.h
index 76a1b7b842..e4cd46d2ef 100644
--- a/plugins/AdvaImg/src/stdafx.h
+++ b/plugins/AdvaImg/src/stdafx.h
@@ -1,3 +1,5 @@
+#pragma once
+
#include <windows.h>
#include <commdlg.h>
#include <malloc.h>
diff --git a/plugins/AssocMgr/src/assoclist.h b/plugins/AssocMgr/src/assoclist.h
index fafbbdf097..8afaeebe70 100644
--- a/plugins/AssocMgr/src/assoclist.h
+++ b/plugins/AssocMgr/src/assoclist.h
@@ -19,6 +19,8 @@ along with this program (AssocMgr-License.txt); if not, write to the Free Softwa
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#pragma once
+
/* Assoc Enabled */
void CleanupAssocEnabledSettings(void);
/* Mime Reg */
diff --git a/plugins/AssocMgr/src/dde.h b/plugins/AssocMgr/src/dde.h
index b9fa35043c..3ef72190eb 100644
--- a/plugins/AssocMgr/src/dde.h
+++ b/plugins/AssocMgr/src/dde.h
@@ -19,6 +19,8 @@ along with this program (AssocMgr-License.txt); if not, write to the Free Softwa
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#pragma once
+
/* Conversation */
#define DDEAPP L"Miranda"
#define DDETOPIC L"OpenAssoc"
diff --git a/plugins/AssocMgr/src/reg.h b/plugins/AssocMgr/src/reg.h
index c7e74d0634..5cd27c7a33 100644
--- a/plugins/AssocMgr/src/reg.h
+++ b/plugins/AssocMgr/src/reg.h
@@ -19,6 +19,8 @@ along with this program (AssocMgr-License.txt); if not, write to the Free Softwa
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#pragma once
+
/* Backup to DB */
void CleanupRegTreeBackupSettings(void);
/* Class */
diff --git a/plugins/AssocMgr/src/stdafx.h b/plugins/AssocMgr/src/stdafx.h
index 6c93da6e33..40a5aa624c 100644
--- a/plugins/AssocMgr/src/stdafx.h
+++ b/plugins/AssocMgr/src/stdafx.h
@@ -19,6 +19,8 @@ along with this program (AssocMgr-License.txt); if not, write to the Free Softwa
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#pragma once
+
#include <shlobj.h> /* for SHChangeNotify() */
#include <Vssym32.h>
#include <malloc.h>
diff --git a/plugins/AssocMgr/src/test.h b/plugins/AssocMgr/src/test.h
index 638dea164b..ab47ad5fd8 100644
--- a/plugins/AssocMgr/src/test.h
+++ b/plugins/AssocMgr/src/test.h
@@ -19,6 +19,8 @@ along with this program (AssocMgr-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 InitTest(void);
void UninitTest(void);
diff --git a/plugins/AssocMgr/src/utils.h b/plugins/AssocMgr/src/utils.h
index 802b74d94b..7a07827944 100644
--- a/plugins/AssocMgr/src/utils.h
+++ b/plugins/AssocMgr/src/utils.h
@@ -19,6 +19,8 @@ along with this program (AssocMgr-License.txt); if not, write to the Free Softwa
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#pragma once
+
void DynamicLoadInit();
/* String Conv */
diff --git a/plugins/AuthState/src/options.h b/plugins/AuthState/src/options.h
index b0e77cd221..7a3b426615 100644
--- a/plugins/AuthState/src/options.h
+++ b/plugins/AuthState/src/options.h
@@ -1,3 +1,5 @@
+#pragma once
+
struct Opts
{
CMOption<BYTE> bUseAuthIcon;
diff --git a/plugins/AutoRun/src/stdafx.h b/plugins/AutoRun/src/stdafx.h
index bdf5ae2607..70c37bad5d 100644
--- a/plugins/AutoRun/src/stdafx.h
+++ b/plugins/AutoRun/src/stdafx.h
@@ -1,3 +1,5 @@
+#pragma once
+
#include <windows.h>
#include <newpluginapi.h>
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 <time.h> /* for mktime(),time() */
#include <windows.h>
#include <windowsx.h>
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);
diff --git a/plugins/AvatarHistory/src/stdafx.h b/plugins/AvatarHistory/src/stdafx.h
index 42752e9625..2c359a32c7 100644
--- a/plugins/AvatarHistory/src/stdafx.h
+++ b/plugins/AvatarHistory/src/stdafx.h
@@ -1,3 +1,5 @@
+#pragma once
+
#include <windows.h>
#include <windowsx.h>
#include <time.h>
diff --git a/plugins/BASS_interface/src/stdafx.h b/plugins/BASS_interface/src/stdafx.h
index 2a940eac73..ce3ab52149 100644
--- a/plugins/BASS_interface/src/stdafx.h
+++ b/plugins/BASS_interface/src/stdafx.h
@@ -2,6 +2,8 @@
Copyright (C) 2010, 2011 tico-tico
*/
+#pragma once
+
#include <windows.h>
#include <commctrl.h>
#include <Uxtheme.h>
diff --git a/plugins/CSList/src/stdafx.h b/plugins/CSList/src/stdafx.h
index 435ab96c42..c6277a2111 100644
--- a/plugins/CSList/src/stdafx.h
+++ b/plugins/CSList/src/stdafx.h
@@ -1,34 +1,34 @@
/* ========================================================================
- Custom Status List
- __________________
+Custom Status List
+__________________
- Custom Status List plugin for Miranda-IM (www.miranda-im.org)
- Follower of Custom Status History List by HANAX
- Copyright © 2006-2008 HANAX
- Copyright © 2007-2009 jarvis
+Custom Status List plugin for Miranda-IM (www.miranda-im.org)
+Follower of Custom Status History List by HANAX
+Copyright © 2006-2008 HANAX
+Copyright © 2007-2009 jarvis
- This program is free software; you can redistribute it and/or
- modify it under the terms of the GNU General Public License
- as published by the Free Software Foundation; either version 2
- of the License, or (at your option) any later version.
+This program is free software; you can redistribute it and/or
+modify it under the terms of the GNU General Public License
+as published by the Free Software Foundation; either version 2
+of the License, or (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+You should have received a copy of the GNU General Public License
+along with this program; if not, write to the Free Software
+Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- DESCRIPTION:
+DESCRIPTION:
- Offers List of your Custom Statuses.
+Offers List of your Custom Statuses.
- ============================================================================
+============================================================================
- // ====[ INCLUDES AND DEFINITIONS ]======================================== */
+// ====[ INCLUDES AND DEFINITIONS ]======================================== */
#ifndef __CSLIST_H
#define __CSLIST_H 1
diff --git a/plugins/CSList/src/strpos.h b/plugins/CSList/src/strpos.h
index 9ba847a395..76bb99aa3c 100644
--- a/plugins/CSList/src/strpos.h
+++ b/plugins/CSList/src/strpos.h
@@ -31,15 +31,13 @@
* You might want to place this next block in a header file somewhere:
*/
+#pragma once
# ifndef wchar_t
# define wchar_t wchar_t
# endif /* wchar_t */
# define STRING wchar_t *
-
-
-
int strpos( STRING haystack, STRING needle )
{
STRING pDest;
diff --git a/plugins/ClientChangeNotify/src/Misc.h b/plugins/ClientChangeNotify/src/Misc.h
index 11b323ada1..2de5d756d2 100644
--- a/plugins/ClientChangeNotify/src/Misc.h
+++ b/plugins/ClientChangeNotify/src/Misc.h
@@ -17,6 +17,8 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+#pragma once
+
#include "stdafx.h"
extern BOOL bPopupExists;
diff --git a/plugins/Clist_blind/src/clc.h b/plugins/Clist_blind/src/clc.h
index b9b7c81ab0..536f29685d 100644
--- a/plugins/Clist_blind/src/clc.h
+++ b/plugins/Clist_blind/src/clc.h
@@ -22,4 +22,6 @@ 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
+
#define FONTID_LAST 7
diff --git a/plugins/Clist_blind/src/stdafx.h b/plugins/Clist_blind/src/stdafx.h
index eca85c36fb..1861004637 100644
--- a/plugins/Clist_blind/src/stdafx.h
+++ b/plugins/Clist_blind/src/stdafx.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
+
#include <windows.h>
#include <vssym32.h>
#include <Uxtheme.h>
diff --git a/plugins/Clist_modern/src/modern_static_cluiframes_service.h b/plugins/Clist_modern/src/modern_static_cluiframes_service.h
index 7a4ce4007a..da8f5b8b89 100644
--- a/plugins/Clist_modern/src/modern_static_cluiframes_service.h
+++ b/plugins/Clist_modern/src/modern_static_cluiframes_service.h
@@ -4,6 +4,8 @@
// TO BE INCLUDED ONLY TO modern_cluiframes.cpp
//////////////////////////////////////////////////////////////////////////
+#pragma once
+
static int _us_DoSetFramePaintProc(WPARAM wParam, LPARAM lParam);
static int _us_DoAddFrame(WPARAM wParam, LPARAM lParam);
static int _us_DoRemoveFrame(WPARAM wParam, LPARAM lParam);
diff --git a/plugins/Clist_nicer/src/alphablend.h b/plugins/Clist_nicer/src/alphablend.h
index 3639203197..fff3fec37d 100644
--- a/plugins/Clist_nicer/src/alphablend.h
+++ b/plugins/Clist_nicer/src/alphablend.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
+
void __inline gradientVertical(UCHAR *ubRedFinal, UCHAR *ubGreenFinal, UCHAR *ubBlueFinal,
ULONG ulBitmapHeight, UCHAR ubRed, UCHAR ubGreen, UCHAR ubBlue, UCHAR ubRed2,
UCHAR ubGreen2, UCHAR ubBlue2, DWORD FLG_GRADIENT, BOOL transparent, UINT32 y, UCHAR *ubAlpha);
diff --git a/plugins/Clist_nicer/src/clc.h b/plugins/Clist_nicer/src/clc.h
index f3ddc964de..e670e6d764 100644
--- a/plugins/Clist_nicer/src/clc.h
+++ b/plugins/Clist_nicer/src/clc.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
+
#define INTM_XSTATUSCHANGED (WM_USER+26)
#define INTM_METACHANGEDEVENT (WM_USER+27)
#define INTM_CODEPAGECHANGED (WM_USER+28)
diff --git a/plugins/Clist_nicer/src/clist.h b/plugins/Clist_nicer/src/clist.h
index a7c9a9f30b..f229f42c22 100644
--- a/plugins/Clist_nicer/src/clist.h
+++ b/plugins/Clist_nicer/src/clist.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
+
int IconFromStatusMode(const char *szProto, int status, MCONTACT hContact, HICON *phIcon);
HTREEITEM GetTreeItemByHContact(MCONTACT hContact);
void SortContacts(void);
diff --git a/plugins/Clist_nicer/src/extBackg.h b/plugins/Clist_nicer/src/extBackg.h
index b1da55916d..8a6dc1d574 100644
--- a/plugins/Clist_nicer/src/extBackg.h
+++ b/plugins/Clist_nicer/src/extBackg.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
+
#define ID_EXTBKIDLE 40081
#define ID_EXTBKEXPANDEDGROUP 40082
#define ID_EXTBKCOLLAPSEDDGROUP 40083
diff --git a/plugins/Clist_nicer/src/stdafx.h b/plugins/Clist_nicer/src/stdafx.h
index e8a103fd33..b9f801493e 100644
--- a/plugins/Clist_nicer/src/stdafx.h
+++ b/plugins/Clist_nicer/src/stdafx.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
+
#undef FASTCALL
#define TSAPI __stdcall
diff --git a/plugins/Cln_skinedit/src/stdafx.h b/plugins/Cln_skinedit/src/stdafx.h
index 9f241e684c..65115d7578 100644
--- a/plugins/Cln_skinedit/src/stdafx.h
+++ b/plugins/Cln_skinedit/src/stdafx.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
+
#include <windows.h>
#include <commctrl.h>
#include <time.h>
diff --git a/plugins/ConnectionNotify/src/netstat.h b/plugins/ConnectionNotify/src/netstat.h
index f55bdd081f..00416a0334 100644
--- a/plugins/ConnectionNotify/src/netstat.h
+++ b/plugins/ConnectionNotify/src/netstat.h
@@ -1,7 +1,5 @@
#pragma once
-
-
struct CONNECTION
{
wchar_t strIntIp[16];
diff --git a/plugins/ConnectionNotify/src/stdafx.h b/plugins/ConnectionNotify/src/stdafx.h
index f14056ff09..e6ec948c9d 100644
--- a/plugins/ConnectionNotify/src/stdafx.h
+++ b/plugins/ConnectionNotify/src/stdafx.h
@@ -1,3 +1,5 @@
+#pragma once
+
#include <windows.h>
#include <Commctrl.h>
#include <assert.h>
diff --git a/plugins/Console/src/stdafx.h b/plugins/Console/src/stdafx.h
index ad0d68c377..f228a0b72e 100644
--- a/plugins/Console/src/stdafx.h
+++ b/plugins/Console/src/stdafx.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
+
#include <windows.h>
#include <commctrl.h>
#include <malloc.h>
diff --git a/plugins/ContactsPlus/src/stdafx.h b/plugins/ContactsPlus/src/stdafx.h
index 6ae4c02e89..32c0d719f7 100644
--- a/plugins/ContactsPlus/src/stdafx.h
+++ b/plugins/ContactsPlus/src/stdafx.h
@@ -21,6 +21,8 @@
//
// ---------------------------------------------------------------------------
+#pragma once
+
#include <windows.h>
#include <windowsx.h>
#include <commctrl.h>
diff --git a/plugins/CountryFlags/src/stdafx.h b/plugins/CountryFlags/src/stdafx.h
index dc1911ef8b..9f69f4c8d4 100644
--- a/plugins/CountryFlags/src/stdafx.h
+++ b/plugins/CountryFlags/src/stdafx.h
@@ -17,6 +17,8 @@ along with this program (Flags-License.txt); if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#pragma once
+
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
diff --git a/plugins/CrashDumper/src/sdkstuff.h b/plugins/CrashDumper/src/sdkstuff.h
index 657e3257ce..31a33a9491 100644
--- a/plugins/CrashDumper/src/sdkstuff.h
+++ b/plugins/CrashDumper/src/sdkstuff.h
@@ -16,6 +16,8 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+#pragma once
+
#include "dbghelp.h"
typedef struct _IMAGEHLP_MODULE64_V2 {
diff --git a/plugins/CrashDumper/src/stdafx.h b/plugins/CrashDumper/src/stdafx.h
index 6a0dc8bede..4480df5e84 100644
--- a/plugins/CrashDumper/src/stdafx.h
+++ b/plugins/CrashDumper/src/stdafx.h
@@ -16,6 +16,8 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+#pragma once
+
#include <windows.h>
#include <windowsx.h>
#include <richedit.h>
diff --git a/plugins/CyrTranslit/src/stdafx.h b/plugins/CyrTranslit/src/stdafx.h
index ff94bd9471..9788f57f98 100644
--- a/plugins/CyrTranslit/src/stdafx.h
+++ b/plugins/CyrTranslit/src/stdafx.h
@@ -17,6 +17,8 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#pragma once
+
#include <windows.h>
#include <map>
diff --git a/plugins/Db3x_mmap/src/database.h b/plugins/Db3x_mmap/src/database.h
index 353342f014..bd47c2eb46 100644
--- a/plugins/Db3x_mmap/src/database.h
+++ b/plugins/Db3x_mmap/src/database.h
@@ -21,6 +21,7 @@ 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
//all offsets are relative to the start of the file
//offsets are 0 if there is nothing in the chain or this is the last in the
diff --git a/plugins/Db3x_mmap/src/dbintf.h b/plugins/Db3x_mmap/src/dbintf.h
index 335a9226a7..5ad1b21c53 100644
--- a/plugins/Db3x_mmap/src/dbintf.h
+++ b/plugins/Db3x_mmap/src/dbintf.h
@@ -21,6 +21,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
+
#define OWN_CACHED_CONTACT
#include <m_db_int.h>
diff --git a/plugins/Db3x_mmap/src/stdafx.h b/plugins/Db3x_mmap/src/stdafx.h
index 25bd7425b7..c8e69d0601 100644
--- a/plugins/Db3x_mmap/src/stdafx.h
+++ b/plugins/Db3x_mmap/src/stdafx.h
@@ -21,6 +21,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
+
#pragma warning(disable:4509)
#include <windows.h>
diff --git a/plugins/Db3x_mmap/src/ui.h b/plugins/Db3x_mmap/src/ui.h
index 202f47d03a..aee1ff0d82 100644
--- a/plugins/Db3x_mmap/src/ui.h
+++ b/plugins/Db3x_mmap/src/ui.h
@@ -1,4 +1,4 @@
-
+#pragma once
class CSelectCryptoDialog : public CDlgBase
{
diff --git a/plugins/DbChecker/src/stdafx.h b/plugins/DbChecker/src/stdafx.h
index 6f2f4b80c9..14484fc38e 100644
--- a/plugins/DbChecker/src/stdafx.h
+++ b/plugins/DbChecker/src/stdafx.h
@@ -19,6 +19,7 @@ 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
#include <windows.h>
#include <process.h>
diff --git a/plugins/Db_autobackups/src/options.h b/plugins/Db_autobackups/src/options.h
index 8a33514f26..4e2d60711e 100644
--- a/plugins/Db_autobackups/src/options.h
+++ b/plugins/Db_autobackups/src/options.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
+
enum BackupType
{
BT_DISABLED = 0,
diff --git a/plugins/Dbx_mdbx/src/dbintf.h b/plugins/Dbx_mdbx/src/dbintf.h
index bbab8b2d1e..2e97964723 100644
--- a/plugins/Dbx_mdbx/src/dbintf.h
+++ b/plugins/Dbx_mdbx/src/dbintf.h
@@ -21,6 +21,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
+
#define OWN_CACHED_CONTACT
#include <m_db_int.h>
diff --git a/plugins/Dbx_mdbx/src/stdafx.h b/plugins/Dbx_mdbx/src/stdafx.h
index 15acf9a137..42e3068ae6 100644
--- a/plugins/Dbx_mdbx/src/stdafx.h
+++ b/plugins/Dbx_mdbx/src/stdafx.h
@@ -21,6 +21,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
+
#include <windows.h>
#include <time.h>
#include <process.h>
diff --git a/plugins/Dbx_mdbx/src/ui.h b/plugins/Dbx_mdbx/src/ui.h
index 08c9ac9059..18b8441888 100644
--- a/plugins/Dbx_mdbx/src/ui.h
+++ b/plugins/Dbx_mdbx/src/ui.h
@@ -1,3 +1,5 @@
+#pragma once
+
static IconItem iconList[] =
{
{ LPGEN("Logo"), "logo", IDI_LOGO },
diff --git a/plugins/ExternalAPI/m_smileyadd.h b/plugins/ExternalAPI/m_smileyadd.h
index 97c18dccdb..f878cf8bf7 100644
--- a/plugins/ExternalAPI/m_smileyadd.h
+++ b/plugins/ExternalAPI/m_smileyadd.h
@@ -16,6 +16,9 @@ GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+
+#pragma once
+
#include <richedit.h>
#define SAFLRE_INSERTEMF 2 // insert smiley as EMF into RichEdit, otherwise bitmap inserted
diff --git a/plugins/ExternalAPI/m_tipper.h b/plugins/ExternalAPI/m_tipper.h
index 2f703df395..abaac6c206 100644
--- a/plugins/ExternalAPI/m_tipper.h
+++ b/plugins/ExternalAPI/m_tipper.h
@@ -20,8 +20,7 @@ Boston, MA 02111-1307, USA.
// Tipper API
-// note: Tipper is internally unicode and requires unicows.dll to function correctly on 95/98/ME
-// so you'll find a lot of wchar_t stuff in here
+# pragma once
// translation function type
// use hContact, module and setting to read your db value(s) and put the resulting string into buff
diff --git a/plugins/FavContacts/src/stdafx.h b/plugins/FavContacts/src/stdafx.h
index 8c123f1131..c0a65e1908 100644
--- a/plugins/FavContacts/src/stdafx.h
+++ b/plugins/FavContacts/src/stdafx.h
@@ -18,6 +18,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
+
#define _CRT_SECURE_NO_DEPRECATE
#include <winsock2.h>
diff --git a/plugins/FileAsMessage/src/dialog.h b/plugins/FileAsMessage/src/dialog.h
index 10f110bf37..117ae006a3 100644
--- a/plugins/FileAsMessage/src/dialog.h
+++ b/plugins/FileAsMessage/src/dialog.h
@@ -1,3 +1,5 @@
+#pragma once
+
extern HINSTANCE hInst;
int getMsgId(char *msg);
@@ -100,7 +102,7 @@ public:
void cmdACCEPT();
void cmdDACK(char *data);
void sendReq();
- int sendCmd(int id, int cmd, char *szParam, char *szPrefix = NULL);
+ int sendCmd(int id, int cmd, char *szParam, char *szPrefix = nullptr);
void cmdDATA(char *data);
void cmdEND();
diff --git a/plugins/FileAsMessage/src/stdafx.h b/plugins/FileAsMessage/src/stdafx.h
index af2ed0eda7..4d16007237 100644
--- a/plugins/FileAsMessage/src/stdafx.h
+++ b/plugins/FileAsMessage/src/stdafx.h
@@ -1,3 +1,5 @@
+#pragma once
+
#define _CRT_NONSTDC_NO_DEPRECATE
#include <windows.h>
diff --git a/plugins/FingerprintNG/src/stdafx.h b/plugins/FingerprintNG/src/stdafx.h
index 99023cdf97..0e70c1f812 100644
--- a/plugins/FingerprintNG/src/stdafx.h
+++ b/plugins/FingerprintNG/src/stdafx.h
@@ -18,6 +18,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
+
#define _CRT_SECURE_NO_DEPRECATE
//Start of header
diff --git a/plugins/FloatingContacts/src/filedrop.h b/plugins/FloatingContacts/src/filedrop.h
index af384c67d3..9ca6441865 100644
--- a/plugins/FloatingContacts/src/filedrop.h
+++ b/plugins/FloatingContacts/src/filedrop.h
@@ -1,8 +1,9 @@
/* This file is a modification of clcfiledrop.h originally
written by Richard Hughes*/
-static HWND hwndCurDrag = NULL;
+#pragma once
+static HWND hwndCurDrag = nullptr;
class CDropTarget: public IDropTarget
{
private:
diff --git a/plugins/FloatingContacts/src/thumbs.h b/plugins/FloatingContacts/src/thumbs.h
index d3e8d396d1..b7af34f8f3 100644
--- a/plugins/FloatingContacts/src/thumbs.h
+++ b/plugins/FloatingContacts/src/thumbs.h
@@ -1,5 +1,5 @@
-/////////////////////////////////////////////////////////////////////////////
-//
+#pragma once
+
#define USERNAME_LEN 50
class CDropTarget;
diff --git a/plugins/GmailNotifier/src/stdafx.h b/plugins/GmailNotifier/src/stdafx.h
index 470fb6209b..936a16376a 100644
--- a/plugins/GmailNotifier/src/stdafx.h
+++ b/plugins/GmailNotifier/src/stdafx.h
@@ -1,3 +1,5 @@
+#pragma once
+
#include <windows.h>
#include <time.h>
#include <stdio.h>
diff --git a/plugins/HTTPServer/src/MimeHandling.h b/plugins/HTTPServer/src/MimeHandling.h
index f40fdf94c8..6a5b3dc61c 100644
--- a/plugins/HTTPServer/src/MimeHandling.h
+++ b/plugins/HTTPServer/src/MimeHandling.h
@@ -1,3 +1,5 @@
+#pragma once
+
#define LINE_MAX_SIZE 512
#ifdef __cplusplus
diff --git a/plugins/HwHotKeys/src/stdafx.h b/plugins/HwHotKeys/src/stdafx.h
index 94d0b78b74..3375f01264 100644
--- a/plugins/HwHotKeys/src/stdafx.h
+++ b/plugins/HwHotKeys/src/stdafx.h
@@ -17,6 +17,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
+
#include <SDKDDKVer.h>
#include <windows.h>
diff --git a/plugins/Import/src/stdafx.h b/plugins/Import/src/stdafx.h
index 9e0c7ea17c..7c29403b61 100644
--- a/plugins/Import/src/stdafx.h
+++ b/plugins/Import/src/stdafx.h
@@ -20,6 +20,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#pragma once
+
#define _CRT_NONSTDC_NO_DEPRECATE
#include <windows.h>
diff --git a/plugins/KeyboardNotify/src/EnumProc.h b/plugins/KeyboardNotify/src/EnumProc.h
index 5f401ce9e0..d994c45f64 100644
--- a/plugins/KeyboardNotify/src/EnumProc.h
+++ b/plugins/KeyboardNotify/src/EnumProc.h
@@ -16,6 +16,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#pragma once
+
typedef struct {
int count;
wchar_t **szFileName;
diff --git a/plugins/KeyboardNotify/src/constants.h b/plugins/KeyboardNotify/src/constants.h
index d50ded6d23..f9000b0160 100644
--- a/plugins/KeyboardNotify/src/constants.h
+++ b/plugins/KeyboardNotify/src/constants.h
@@ -16,6 +16,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#pragma once
+
// Settings values
#define KEYBDMODULE "keybdnotify"
#define FLASH_SAMETIME 0
diff --git a/plugins/KeyboardNotify/src/flash.h b/plugins/KeyboardNotify/src/flash.h
index 96421c966e..ee553f6834 100644
--- a/plugins/KeyboardNotify/src/flash.h
+++ b/plugins/KeyboardNotify/src/flash.h
@@ -16,6 +16,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#pragma once
+
void RestoreLEDState(void);
BYTE getBlinkingLeds(void);
void setFlashingSequence(void);
diff --git a/plugins/KeyboardNotify/src/ignore.h b/plugins/KeyboardNotify/src/ignore.h
index 5fcd0ceebe..0748c5c2ba 100644
--- a/plugins/KeyboardNotify/src/ignore.h
+++ b/plugins/KeyboardNotify/src/ignore.h
@@ -16,5 +16,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#pragma once
+
BOOL IsIgnored(MCONTACT, WORD);
INT_PTR CALLBACK DlgProcIgnoreOptions(HWND, UINT, WPARAM, LPARAM);
diff --git a/plugins/KeyboardNotify/src/keyboard.h b/plugins/KeyboardNotify/src/keyboard.h
index 8fe6b52fe9..2e1ae08e51 100644
--- a/plugins/KeyboardNotify/src/keyboard.h
+++ b/plugins/KeyboardNotify/src/keyboard.h
@@ -16,6 +16,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#pragma once
+
BOOL OpenKeyboardDevice(void);
BOOL ToggleKeyboardLights(BYTE);
void CloseKeyboardDevice(void);
diff --git a/plugins/KeyboardNotify/src/keypresses.h b/plugins/KeyboardNotify/src/keypresses.h
index 57e99aa25c..8b9d40c375 100644
--- a/plugins/KeyboardNotify/src/keypresses.h
+++ b/plugins/KeyboardNotify/src/keypresses.h
@@ -16,5 +16,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#pragma once
+
void keypresses_RestoreLEDState(void);
BOOL keypresses_ToggleKeyboardLights(BYTE);
diff --git a/plugins/KeyboardNotify/src/protolist.h b/plugins/KeyboardNotify/src/protolist.h
index d3f816009d..ec6fda6b86 100644
--- a/plugins/KeyboardNotify/src/protolist.h
+++ b/plugins/KeyboardNotify/src/protolist.h
@@ -16,6 +16,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#pragma once
+
typedef struct {
UINT_PTR count;
BOOL *enabled;
diff --git a/plugins/KeyboardNotify/src/stdafx.h b/plugins/KeyboardNotify/src/stdafx.h
index fad3036683..0485a000b9 100644
--- a/plugins/KeyboardNotify/src/stdafx.h
+++ b/plugins/KeyboardNotify/src/stdafx.h
@@ -16,6 +16,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#pragma once
+
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
diff --git a/plugins/KeyboardNotify/src/utils.h b/plugins/KeyboardNotify/src/utils.h
index 64e83feeb5..ba248b9e54 100644
--- a/plugins/KeyboardNotify/src/utils.h
+++ b/plugins/KeyboardNotify/src/utils.h
@@ -16,5 +16,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#pragma once
+
char *fmtDBSettingName(const char *, ...);
wchar_t *getAbsoluteProfileName(wchar_t *, size_t);
diff --git a/plugins/ListeningTo/src/players/foobar.h b/plugins/ListeningTo/src/players/foobar.h
index b03f6f7527..c2dfac9b04 100644
--- a/plugins/ListeningTo/src/players/foobar.h
+++ b/plugins/ListeningTo/src/players/foobar.h
@@ -17,6 +17,7 @@ not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA.
*/
+#pragma once
class Foobar : public ExternalPlayer
{
diff --git a/plugins/ListeningTo/src/players/generic.h b/plugins/ListeningTo/src/players/generic.h
index b9e56dd84d..ca5f6d90d7 100644
--- a/plugins/ListeningTo/src/players/generic.h
+++ b/plugins/ListeningTo/src/players/generic.h
@@ -18,6 +18,8 @@ Boston, MA 02111-1307, USA.
*/
+#pragma once
+
class GenericPlayer : public Player
{
protected:
diff --git a/plugins/ListeningTo/src/players/itunes.h b/plugins/ListeningTo/src/players/itunes.h
index cc5c496910..db0a73af5a 100644
--- a/plugins/ListeningTo/src/players/itunes.h
+++ b/plugins/ListeningTo/src/players/itunes.h
@@ -17,6 +17,8 @@ not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA.
*/
+#pragma once
+
extern "C"
{
#include "iTunesCOMInterface.h"
diff --git a/plugins/ListeningTo/src/players/mradio.h b/plugins/ListeningTo/src/players/mradio.h
index 7d1b3bf226..6531a45e73 100644
--- a/plugins/ListeningTo/src/players/mradio.h
+++ b/plugins/ListeningTo/src/players/mradio.h
@@ -18,6 +18,8 @@ Boston, MA 02111-1307, USA.
*/
+#pragma once
+
class MRadio : public Player
{
protected:
diff --git a/plugins/ListeningTo/src/players/player.h b/plugins/ListeningTo/src/players/player.h
index f5505b7374..282e44102f 100644
--- a/plugins/ListeningTo/src/players/player.h
+++ b/plugins/ListeningTo/src/players/player.h
@@ -18,6 +18,8 @@ Boston, MA 02111-1307, USA.
*/
+#pragma once
+
class Player
{
protected:
diff --git a/plugins/ListeningTo/src/players/watrack.h b/plugins/ListeningTo/src/players/watrack.h
index 2a7da3ba5c..64a2ac247c 100644
--- a/plugins/ListeningTo/src/players/watrack.h
+++ b/plugins/ListeningTo/src/players/watrack.h
@@ -18,6 +18,8 @@ Boston, MA 02111-1307, USA.
*/
+#pragma once
+
class WATrack : public Player
{
protected:
diff --git a/plugins/ListeningTo/src/players/winamp.h b/plugins/ListeningTo/src/players/winamp.h
index 69a9d04b41..f428854155 100644
--- a/plugins/ListeningTo/src/players/winamp.h
+++ b/plugins/ListeningTo/src/players/winamp.h
@@ -18,6 +18,8 @@ Boston, MA 02111-1307, USA.
*/
+#pragma once
+
class Winamp : public CodeInjectionPlayer
{
public:
diff --git a/plugins/ListeningTo/src/players/wmp.h b/plugins/ListeningTo/src/players/wmp.h
index a7cdc87b1c..954104bcca 100644
--- a/plugins/ListeningTo/src/players/wmp.h
+++ b/plugins/ListeningTo/src/players/wmp.h
@@ -18,6 +18,8 @@ Boston, MA 02111-1307, USA.
*/
+#pragma once
+
class WindowsMediaPlayer : public Player
{
protected:
diff --git a/plugins/LotusNotify/src/LotusNotify.h b/plugins/LotusNotify/src/LotusNotify.h
index 9eec4a4c74..b9b3f60a1a 100644
--- a/plugins/LotusNotify/src/LotusNotify.h
+++ b/plugins/LotusNotify/src/LotusNotify.h
@@ -1,3 +1,4 @@
+#pragma once
struct HISTORIA
{
diff --git a/plugins/MimCmd/src/stdafx.h b/plugins/MimCmd/src/stdafx.h
index 0ed8285a81..d6aa7d304c 100644
--- a/plugins/MimCmd/src/stdafx.h
+++ b/plugins/MimCmd/src/stdafx.h
@@ -18,6 +18,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
+
#include <stdio.h>
#include <windows.h>
diff --git a/plugins/MirFox/src/MirFoxCommons/MirFoxCommons_pch.h b/plugins/MirFox/src/MirFoxCommons/MirFoxCommons_pch.h
index 8b4e98b41f..85cc645c70 100644
--- a/plugins/MirFox/src/MirFoxCommons/MirFoxCommons_pch.h
+++ b/plugins/MirFox/src/MirFoxCommons/MirFoxCommons_pch.h
@@ -1,5 +1,6 @@
//used in: all
+#pragma once
// Modify the following defines if you have to target a platform prior to the ones specified below.
// Refer to MSDN for the latest info on corresponding values for different platforms.
diff --git a/plugins/MirFox/src/common.h b/plugins/MirFox/src/common.h
index f894436813..ed1020d3ac 100644
--- a/plugins/MirFox/src/common.h
+++ b/plugins/MirFox/src/common.h
@@ -1,3 +1,5 @@
+#pragma once
+
#include "MirFoxCommons_pch.h"
diff --git a/plugins/MirLua/Modules/WinAPI/src/stdafx.h b/plugins/MirLua/Modules/WinAPI/src/stdafx.h
index 4885e14c2f..0e24189fbe 100644
--- a/plugins/MirLua/Modules/WinAPI/src/stdafx.h
+++ b/plugins/MirLua/Modules/WinAPI/src/stdafx.h
@@ -44,6 +44,8 @@
*
***/
+#pragma once
+
#define LUA_WINAPI_LIB extern "C" int __declspec(dllexport)
#include <lua.hpp>
@@ -74,4 +76,4 @@ struct luaM_consts
#define luaM_PushNumberIf(L, a, b) if (b) lua_pushnumber(L, (intptr_t)a); else lua_pushnil(L);
#define luaM_PushStringIf(L, a, b) if (b) lua_pushstring(L, a); else lua_pushnil(L);
-#define luaM_CheckPushNumber(L, a) luaM_PushNumberIf(L, a, a) \ No newline at end of file
+#define luaM_CheckPushNumber(L, a) luaM_PushNumberIf(L, a, a)
diff --git a/plugins/MirOTR/src/dbfilter.h b/plugins/MirOTR/src/dbfilter.h
index 99a6d50428..9da19c30b1 100644
--- a/plugins/MirOTR/src/dbfilter.h
+++ b/plugins/MirOTR/src/dbfilter.h
@@ -1,4 +1,6 @@
+#pragma once
+
#define DBEF_OTR_PREFIXED 0x8000
void InitDBFilter();
-void DeinitDBFilter(); \ No newline at end of file
+void DeinitDBFilter();
diff --git a/plugins/MirandaG15/src/Miranda.h b/plugins/MirandaG15/src/Miranda.h
index f5f8dfecf5..22ad8e00a8 100644
--- a/plugins/MirandaG15/src/Miranda.h
+++ b/plugins/MirandaG15/src/Miranda.h
@@ -1,3 +1,5 @@
+#pragma once
+
extern HINSTANCE hInstance;
extern char *MsgServiceName(MCONTACT hContact,bool bIsUnicode);
diff --git a/plugins/MsgPopup/src/options.h b/plugins/MsgPopup/src/options.h
index 07f81f28d9..60940ed716 100644
--- a/plugins/MsgPopup/src/options.h
+++ b/plugins/MsgPopup/src/options.h
@@ -19,4 +19,7 @@ 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
+
INT_PTR CALLBACK OptionsDlgProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam);
diff --git a/plugins/MsgPopup/src/stdafx.h b/plugins/MsgPopup/src/stdafx.h
index c410bc62e0..be80f56c4a 100644
--- a/plugins/MsgPopup/src/stdafx.h
+++ b/plugins/MsgPopup/src/stdafx.h
@@ -20,6 +20,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#pragma once
+
#include <windows.h>
#include <tlhelp32.h>
#include <dbghelp.h>
diff --git a/plugins/NewAwaySysMod/src/Services.h b/plugins/NewAwaySysMod/src/Services.h
index ca81be7f75..4597fae42a 100644
--- a/plugins/NewAwaySysMod/src/Services.h
+++ b/plugins/NewAwaySysMod/src/Services.h
@@ -17,6 +17,8 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+#pragma once
+
INT_PTR GetStatusMsgW(WPARAM wParam, LPARAM lParam);
INT_PTR SetStatusMode(WPARAM wParam, LPARAM lParam);
// int IgnoreNextStatusChange(WPARAM wParam, LPARAM lParam);
diff --git a/plugins/NewEventNotify/src/stdafx.h b/plugins/NewEventNotify/src/stdafx.h
index dba661ad99..46826e5b21 100644
--- a/plugins/NewEventNotify/src/stdafx.h
+++ b/plugins/NewEventNotify/src/stdafx.h
@@ -22,6 +22,8 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+#pragma once
+
//---------------------------
//---Includes
#define _CRT_NONSTDC_NO_DEPRECATE
diff --git a/plugins/New_GPG/src/metacontacts.h b/plugins/New_GPG/src/metacontacts.h
index 51ee6eaf1e..08f10c865d 100644
--- a/plugins/New_GPG/src/metacontacts.h
+++ b/plugins/New_GPG/src/metacontacts.h
@@ -14,6 +14,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
+
bool metaIsDefaultSubContact(MCONTACT hContact) ;
MCONTACT metaGetMostOnline(MCONTACT hContact);
diff --git a/plugins/NewsAggregator/Src/stdafx.h b/plugins/NewsAggregator/Src/stdafx.h
index d9d5417d7e..27fdfd2195 100644
--- a/plugins/NewsAggregator/Src/stdafx.h
+++ b/plugins/NewsAggregator/Src/stdafx.h
@@ -17,6 +17,8 @@ not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA.
*/
+#pragma once
+
// Windows Header Files:
#include <windows.h>
#include <commctrl.h>
diff --git a/plugins/NotesAndReminders/src/globals.h b/plugins/NotesAndReminders/src/globals.h
index 42dc243638..c1355db7db 100644
--- a/plugins/NotesAndReminders/src/globals.h
+++ b/plugins/NotesAndReminders/src/globals.h
@@ -1,3 +1,5 @@
+#pragma once
+
#define _CRT_SECURE_NO_WARNINGS
#include <windows.h>
diff --git a/plugins/NotesAndReminders/src/miscutils.h b/plugins/NotesAndReminders/src/miscutils.h
index 4e4df46115..a9ac99f318 100644
--- a/plugins/NotesAndReminders/src/miscutils.h
+++ b/plugins/NotesAndReminders/src/miscutils.h
@@ -1,3 +1,5 @@
+#pragma once
+
void ReadSettingBlob(MCONTACT hContact, char *ModuleName,
char *SettingName, WORD *pSize, void **pbBlob);
void FreeSettingBlob(WORD pSize,void * pbBlob);
diff --git a/plugins/NotifyAnything/src/stdafx.h b/plugins/NotifyAnything/src/stdafx.h
index 02d6b1dfec..a2d50efc29 100644
--- a/plugins/NotifyAnything/src/stdafx.h
+++ b/plugins/NotifyAnything/src/stdafx.h
@@ -1,3 +1,5 @@
+#pragma once
+
#define _CRT_SECURE_NO_DEPRECATE
#include <windows.h>
diff --git a/plugins/Nudge/src/stdafx.h b/plugins/Nudge/src/stdafx.h
index db45931958..16f0dfe4d3 100644
--- a/plugins/Nudge/src/stdafx.h
+++ b/plugins/Nudge/src/stdafx.h
@@ -3,6 +3,8 @@
// are changed infrequently
//
+#pragma once
+
#include <windows.h>
#include <commctrl.h>
#include <time.h>
diff --git a/plugins/OpenFolder/src/stdafx.h b/plugins/OpenFolder/src/stdafx.h
index d8e0273e6b..2020c78b28 100644
--- a/plugins/OpenFolder/src/stdafx.h
+++ b/plugins/OpenFolder/src/stdafx.h
@@ -1,3 +1,5 @@
+#pragma once
+
#include <windows.h>
#include <commctrl.h>
diff --git a/plugins/OpenSSL/src/stdafx.h b/plugins/OpenSSL/src/stdafx.h
index b637b9fded..ab21d17d87 100644
--- a/plugins/OpenSSL/src/stdafx.h
+++ b/plugins/OpenSSL/src/stdafx.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
+
#define SECURITY_WIN32
#define HSSL_DEFINED
diff --git a/plugins/PackUpdater/Src/Notifications.h b/plugins/PackUpdater/Src/Notifications.h
index 9aefd9090e..e61a23704d 100644
--- a/plugins/PackUpdater/Src/Notifications.h
+++ b/plugins/PackUpdater/Src/Notifications.h
@@ -17,6 +17,8 @@ not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA.
*/
+#pragma once
+
#define POPUPS 4
//=== Objects =====
diff --git a/plugins/PackUpdater/Src/stdafx.h b/plugins/PackUpdater/Src/stdafx.h
index 0208c941a7..5fa61acd12 100644
--- a/plugins/PackUpdater/Src/stdafx.h
+++ b/plugins/PackUpdater/Src/stdafx.h
@@ -17,6 +17,8 @@ not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA.
*/
+#pragma once
+
// Windows Header Files:
#include <windows.h>
#include <Windowsx.h>
diff --git a/plugins/Ping/src/collection.h b/plugins/Ping/src/collection.h
index 6e1615ea01..73e36fe704 100644
--- a/plugins/Ping/src/collection.h
+++ b/plugins/Ping/src/collection.h
@@ -1,3 +1,5 @@
+#pragma once
+
template<class T> class Collection
{
protected:
diff --git a/plugins/Ping/src/stdafx.h b/plugins/Ping/src/stdafx.h
index 7bdfa5be69..c90c557b73 100644
--- a/plugins/Ping/src/stdafx.h
+++ b/plugins/Ping/src/stdafx.h
@@ -1,3 +1,5 @@
+#pragma once
+
#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
#include <windows.h>
diff --git a/plugins/PluginUpdater/src/Notifications.h b/plugins/PluginUpdater/src/Notifications.h
index 2819baf04b..3624989b18 100644
--- a/plugins/PluginUpdater/src/Notifications.h
+++ b/plugins/PluginUpdater/src/Notifications.h
@@ -17,6 +17,8 @@ not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA.
*/
+#pragma once
+
#define POPUPS 3
//=== Objects =====
diff --git a/plugins/PluginUpdater/src/stdafx.h b/plugins/PluginUpdater/src/stdafx.h
index a621662ce5..2efd9cb392 100644
--- a/plugins/PluginUpdater/src/stdafx.h
+++ b/plugins/PluginUpdater/src/stdafx.h
@@ -17,6 +17,8 @@ not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA.
*/
+#pragma once
+
// Windows Header Files:
#include <time.h>
#include <stddef.h>
diff --git a/plugins/ProfileManager/src/stdafx.h b/plugins/ProfileManager/src/stdafx.h
index 81add820dd..26b605671a 100644
--- a/plugins/ProfileManager/src/stdafx.h
+++ b/plugins/ProfileManager/src/stdafx.h
@@ -1,3 +1,5 @@
+#pragma once
+
#include <windows.h>
#include <newpluginapi.h>
diff --git a/plugins/QuickMessages/src/Utils.h b/plugins/QuickMessages/src/Utils.h
index adfd0ffa76..c06902ad44 100644
--- a/plugins/QuickMessages/src/Utils.h
+++ b/plugins/QuickMessages/src/Utils.h
@@ -16,6 +16,9 @@ GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+
+#pragma once
+
#define QMF_NEW (1<<0)
#define QMF_DELETNEEDED (1<<1)
#define QMF_RENAMED (1<<2)
diff --git a/plugins/QuickMessages/src/stdafx.h b/plugins/QuickMessages/src/stdafx.h
index 63209952aa..20ea57ee12 100644
--- a/plugins/QuickMessages/src/stdafx.h
+++ b/plugins/QuickMessages/src/stdafx.h
@@ -17,6 +17,8 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+#pragma once
+
#define _CRT_SECURE_NO_DEPRECATE
#include <windows.h>
diff --git a/plugins/RecentContacts/src/stdafx.h b/plugins/RecentContacts/src/stdafx.h
index a23ecfaacd..77f646d199 100644
--- a/plugins/RecentContacts/src/stdafx.h
+++ b/plugins/RecentContacts/src/stdafx.h
@@ -1,3 +1,5 @@
+#pragma once
+
#define _CRT_NONSTDC_NO_DEPRECATE
#include <windows.h>
diff --git a/plugins/RemovePersonalSettings/src/stdafx.h b/plugins/RemovePersonalSettings/src/stdafx.h
index 482fbbad7f..f1e9407f35 100644
--- a/plugins/RemovePersonalSettings/src/stdafx.h
+++ b/plugins/RemovePersonalSettings/src/stdafx.h
@@ -17,6 +17,8 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+#pragma once
+
#include <windows.h>
#include <io.h>
#include <stdio.h>
diff --git a/plugins/Restart/src/stdafx.h b/plugins/Restart/src/stdafx.h
index ba71e84021..13536d7f07 100644
--- a/plugins/Restart/src/stdafx.h
+++ b/plugins/Restart/src/stdafx.h
@@ -1,5 +1,6 @@
-#define WIN32_LEAN_AND_MEAN
+#pragma once
+#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <newpluginapi.h>
diff --git a/plugins/SeenPlugin/src/stdafx.h b/plugins/SeenPlugin/src/stdafx.h
index 67fb460e2f..b6f48775ac 100644
--- a/plugins/SeenPlugin/src/stdafx.h
+++ b/plugins/SeenPlugin/src/stdafx.h
@@ -18,6 +18,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
+
#define ETDT_ENABLE 0x00000002
#define ETDT_USETABTEXTURE 0x00000004
#define ETDT_ENABLETAB (ETDT_ENABLE | ETDT_USETABTEXTURE)
diff --git a/plugins/Sessions/Src/stdafx.h b/plugins/Sessions/Src/stdafx.h
index 35d25db35b..e88071f852 100644
--- a/plugins/Sessions/Src/stdafx.h
+++ b/plugins/Sessions/Src/stdafx.h
@@ -17,6 +17,8 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+#pragma once
+
#define _CRT_SECURE_NO_DEPRECATE
#include <windows.h>
diff --git a/plugins/ShellExt/src/shlcom.h b/plugins/ShellExt/src/shlcom.h
index 1fc9b44f1e..21f0a87927 100644
--- a/plugins/ShellExt/src/shlcom.h
+++ b/plugins/ShellExt/src/shlcom.h
@@ -1,3 +1,4 @@
+#pragma once
#define REPLY_FAIL 0x88888888
#define REPLY_OK 0x00000000
diff --git a/plugins/ShellExt/src/shlicons.h b/plugins/ShellExt/src/shlicons.h
index 6010c8c489..c3780f0eed 100644
--- a/plugins/ShellExt/src/shlicons.h
+++ b/plugins/ShellExt/src/shlicons.h
@@ -1,3 +1,4 @@
+#pragma once
IWICImagingFactory* ARGB_GetWorker();
diff --git a/plugins/ShellExt/src/stdafx.h b/plugins/ShellExt/src/stdafx.h
index d84472a037..6dcac8d40f 100644
--- a/plugins/ShellExt/src/stdafx.h
+++ b/plugins/ShellExt/src/stdafx.h
@@ -1,3 +1,4 @@
+#pragma once
#include <windows.h>
#include <CommCtrl.h>
diff --git a/plugins/SimpleAR/src/stdafx.h b/plugins/SimpleAR/src/stdafx.h
index ff19f084ef..f3780904d4 100644
--- a/plugins/SimpleAR/src/stdafx.h
+++ b/plugins/SimpleAR/src/stdafx.h
@@ -1,3 +1,5 @@
+#pragma once
+
#include <windows.h>
#include <time.h>
diff --git a/plugins/SimpleStatusMsg/src/stdafx.h b/plugins/SimpleStatusMsg/src/stdafx.h
index f8fc168adb..2dec8739e6 100644
--- a/plugins/SimpleStatusMsg/src/stdafx.h
+++ b/plugins/SimpleStatusMsg/src/stdafx.h
@@ -18,6 +18,8 @@ with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
+#pragma once
+
#include <windows.h>
#include <windowsx.h>
#include <time.h>
diff --git a/plugins/SkypeStatusChange/src/stdafx.h b/plugins/SkypeStatusChange/src/stdafx.h
index 8fc6dec0ea..07b99f2708 100644
--- a/plugins/SkypeStatusChange/src/stdafx.h
+++ b/plugins/SkypeStatusChange/src/stdafx.h
@@ -1,3 +1,5 @@
+#pragma once
+
#include <windows.h>
#include <stdio.h>
#include <assert.h>
diff --git a/plugins/SmileyAdd/src/SmileyBase.h b/plugins/SmileyAdd/src/SmileyBase.h
index 499e960510..7b366ac781 100644
--- a/plugins/SmileyAdd/src/SmileyBase.h
+++ b/plugins/SmileyAdd/src/SmileyBase.h
@@ -16,6 +16,8 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+#pragma once
+
#define OLEIVERB_SETOWNER (-24)
EXTERN_C const IID IID_ITooltipData;
diff --git a/plugins/Spamotron/src/stdafx.h b/plugins/Spamotron/src/stdafx.h
index 3773cee40d..04b7e98577 100644
--- a/plugins/Spamotron/src/stdafx.h
+++ b/plugins/Spamotron/src/stdafx.h
@@ -1,3 +1,5 @@
+#pragma once
+
#include <windows.h>
#include <commctrl.h>
#include <stdlib.h>
diff --git a/plugins/StartupSilence/src/stdafx.h b/plugins/StartupSilence/src/stdafx.h
index b20aa52f5b..c6d9df5352 100644
--- a/plugins/StartupSilence/src/stdafx.h
+++ b/plugins/StartupSilence/src/stdafx.h
@@ -1,3 +1,5 @@
+#pragma once
+
#include <windows.h>
#include <CommCtrl.h>
#include <WinSock.h>
diff --git a/plugins/StatusChange/src/stdafx.h b/plugins/StatusChange/src/stdafx.h
index d98ffad0a6..b04c4b9d71 100644
--- a/plugins/StatusChange/src/stdafx.h
+++ b/plugins/StatusChange/src/stdafx.h
@@ -1,3 +1,5 @@
+#pragma once
+
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
diff --git a/plugins/StopSpamMod/src/globals.h b/plugins/StopSpamMod/src/globals.h
index e046e68f6f..ae45848eb2 100755
--- a/plugins/StopSpamMod/src/globals.h
+++ b/plugins/StopSpamMod/src/globals.h
@@ -1,3 +1,5 @@
+#pragma once
+
#define pluginName "StopSpam" //const char* ?
#define PREF_TCHAR2 PREF_UTF
diff --git a/plugins/StopSpamMod/src/stdafx.h b/plugins/StopSpamMod/src/stdafx.h
index d5551e8d10..8a827674d3 100755
--- a/plugins/StopSpamMod/src/stdafx.h
+++ b/plugins/StopSpamMod/src/stdafx.h
@@ -1,3 +1,5 @@
+#pragma once
+
#include <windows.h>
using namespace std;
diff --git a/plugins/StopSpamMod/src/stopspam.h b/plugins/StopSpamMod/src/stopspam.h
index 6b76869416..e467c4a666 100755
--- a/plugins/StopSpamMod/src/stopspam.h
+++ b/plugins/StopSpamMod/src/stopspam.h
@@ -1,3 +1,4 @@
+#pragma once
extern BOOL gbDosServiceExist;
extern BOOL gbVarsServiceExist;
diff --git a/plugins/StopSpamMod/src/utilities.h b/plugins/StopSpamMod/src/utilities.h
index f941823bd0..5b0d724408 100755
--- a/plugins/StopSpamMod/src/utilities.h
+++ b/plugins/StopSpamMod/src/utilities.h
@@ -1,3 +1,5 @@
+#pragma once
+
std::wstring DBGetContactSettingStringPAN(MCONTACT hContact, char const * szModule, char const * szSetting, std::wstring errorValue);
std::string DBGetContactSettingStringPAN_A(MCONTACT hContact, char const * szModule, char const * szSetting, std::string errorValue);
std::wstring &GetDlgItemString(HWND hwnd, int id);
diff --git a/plugins/StopSpamPlus/src/settings.h b/plugins/StopSpamPlus/src/settings.h
index b1e735e88d..683d7cb0c7 100644
--- a/plugins/StopSpamPlus/src/settings.h
+++ b/plugins/StopSpamPlus/src/settings.h
@@ -1,3 +1,4 @@
+#pragma once
struct Settings
{
diff --git a/plugins/TabSRMM/src/ImageDataObject.h b/plugins/TabSRMM/src/ImageDataObject.h
index 9a4c9ad5de..3f46b44d6d 100644
--- a/plugins/TabSRMM/src/ImageDataObject.h
+++ b/plugins/TabSRMM/src/ImageDataObject.h
@@ -19,6 +19,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
//code taken partly from public example on the internet, source unknown.
+#pragma once
+
class CImageDataObject : IDataObject
{
public:
diff --git a/plugins/TabSRMM/src/muchighlight.h b/plugins/TabSRMM/src/muchighlight.h
index 0d43fb01e5..340b9e53f6 100644
--- a/plugins/TabSRMM/src/muchighlight.h
+++ b/plugins/TabSRMM/src/muchighlight.h
@@ -26,6 +26,8 @@
//
// highlighter class for multi user chats
+#pragma once
+
class CMUCHighlight {
public:
diff --git a/plugins/TabSRMM/src/templates.h b/plugins/TabSRMM/src/templates.h
index 3394ea0f3e..e294636838 100644
--- a/plugins/TabSRMM/src/templates.h
+++ b/plugins/TabSRMM/src/templates.h
@@ -26,4 +26,6 @@
//
// templates for the message log...
+#pragma once
+
void LoadDefaultTemplates();
diff --git a/plugins/TabSRMM/src/typingnotify.h b/plugins/TabSRMM/src/typingnotify.h
index 800cdb5930..3d298dae8b 100644
--- a/plugins/TabSRMM/src/typingnotify.h
+++ b/plugins/TabSRMM/src/typingnotify.h
@@ -1,3 +1,5 @@
+#pragma once
+
#define UM_SETDLGITEMINT 5674
#define TIMEOUT_MINVALUE -1
diff --git a/plugins/TipperYM/src/stdafx.h b/plugins/TipperYM/src/stdafx.h
index 8c585e912a..8a2166c363 100644
--- a/plugins/TipperYM/src/stdafx.h
+++ b/plugins/TipperYM/src/stdafx.h
@@ -18,6 +18,8 @@ not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA.
*/
+#pragma once
+
#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
// Windows Header Files:
#include <windows.h>
diff --git a/plugins/TooltipNotify/src/DbHelpers.h b/plugins/TooltipNotify/src/DbHelpers.h
index 94677569a8..98fa9c51de 100644
--- a/plugins/TooltipNotify/src/DbHelpers.h
+++ b/plugins/TooltipNotify/src/DbHelpers.h
@@ -2,6 +2,8 @@
//
//////////////////////////////////////////////////////////////////////
+#pragma once
+
bool ModuleSettingsExists(MCONTACT hContact, const char* pszModuleName);
void DeleteModuleSettings(MCONTACT hContact, const char* pszModuleName);
void RenameModule(MCONTACT hContact, const char* pszOldName, const char* pszNewName);
diff --git a/plugins/TooltipNotify/src/Settings.h b/plugins/TooltipNotify/src/Settings.h
index cf99538f3e..d9b937afba 100644
--- a/plugins/TooltipNotify/src/Settings.h
+++ b/plugins/TooltipNotify/src/Settings.h
@@ -2,6 +2,8 @@
// Settings.h
//
+#pragma once
+
// Settings related
#define DEF_LOGPIXELSY 96
#define PROTO_TT_ON_INT_BIT 0x01
diff --git a/plugins/TooltipNotify/src/Tooltip.h b/plugins/TooltipNotify/src/Tooltip.h
index 9e47040bf6..1767e0d3a3 100644
--- a/plugins/TooltipNotify/src/Tooltip.h
+++ b/plugins/TooltipNotify/src/Tooltip.h
@@ -2,6 +2,8 @@
//
//////////////////////////////////////////////////////////////////////
+#pragma once
+
class CTooltipNotify;
class CTooltip
diff --git a/plugins/TooltipNotify/src/TooltipNotify.h b/plugins/TooltipNotify/src/TooltipNotify.h
index 793d1d6500..40aaac0db6 100644
--- a/plugins/TooltipNotify/src/TooltipNotify.h
+++ b/plugins/TooltipNotify/src/TooltipNotify.h
@@ -2,6 +2,8 @@
//
//////////////////////////////////////////////////////////////////////
+#pragma once
+
class CTooltip;
class CTooltipNotify
diff --git a/plugins/TooltipNotify/src/Utils.h b/plugins/TooltipNotify/src/Utils.h
index 36270e8311..19afbab838 100644
--- a/plugins/TooltipNotify/src/Utils.h
+++ b/plugins/TooltipNotify/src/Utils.h
@@ -2,5 +2,7 @@
// Utils.h
//
+#pragma once
+
BOOL IsNt50();
void TruncateWithDots(wchar_t* szString, size_t iNewLen);
diff --git a/plugins/TooltipNotify/src/stdafx.h b/plugins/TooltipNotify/src/stdafx.h
index f1a20e5546..50f8f3d042 100644
--- a/plugins/TooltipNotify/src/stdafx.h
+++ b/plugins/TooltipNotify/src/stdafx.h
@@ -3,6 +3,8 @@
// are changed infrequently
//
+#pragma once
+
#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
#include <windows.h>
diff --git a/plugins/TopToolBar/src/BkgrCfg.h b/plugins/TopToolBar/src/BkgrCfg.h
index 4533267fcb..9d50386bae 100644
--- a/plugins/TopToolBar/src/BkgrCfg.h
+++ b/plugins/TopToolBar/src/BkgrCfg.h
@@ -1,3 +1,5 @@
+#pragma once
+
//
// Register of plugin's user
//
diff --git a/plugins/TrafficCounter/src/misc.h b/plugins/TrafficCounter/src/misc.h
index 04343d3c33..fd3d18e990 100644
--- a/plugins/TrafficCounter/src/misc.h
+++ b/plugins/TrafficCounter/src/misc.h
@@ -1,3 +1,5 @@
+#pragma once
+
typedef struct
{
wchar_t Alignment; // Выравнивание. L - к левой границе, R - к правой.
diff --git a/plugins/UserGuide/src/stdafx.h b/plugins/UserGuide/src/stdafx.h
index ba72daf118..cef468c456 100644
--- a/plugins/UserGuide/src/stdafx.h
+++ b/plugins/UserGuide/src/stdafx.h
@@ -1,3 +1,5 @@
+#pragma once
+
#include <windows.h>
#include <newpluginapi.h>
diff --git a/plugins/Variables/src/contact.h b/plugins/Variables/src/contact.h
index b145a48f4f..dc83dd73cb 100644
--- a/plugins/Variables/src/contact.h
+++ b/plugins/Variables/src/contact.h
@@ -17,6 +17,8 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+#pragma once
+
#define STR_FIRSTNAME L"first"
#define STR_LASTNAME L"last"
#define STR_NICK L"nick"
diff --git a/plugins/Variables/src/dbhelpers.h b/plugins/Variables/src/dbhelpers.h
index b942337774..4949022c8a 100644
--- a/plugins/Variables/src/dbhelpers.h
+++ b/plugins/Variables/src/dbhelpers.h
@@ -17,6 +17,8 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+#pragma once
+
#ifndef PREFIX_ITH
#define PREFIX_ITH ""
#endif
diff --git a/plugins/Variables/src/enumprocs.h b/plugins/Variables/src/enumprocs.h
index ceb7c461c3..7602fe8186 100644
--- a/plugins/Variables/src/enumprocs.h
+++ b/plugins/Variables/src/enumprocs.h
@@ -17,6 +17,8 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+#pragma once
+
/*** Process names are ANSI only ***/
typedef BOOL (CALLBACK *PROCENUMPROC)(DWORD, WORD, char *, LPARAM);
BOOL WINAPI EnumProcs(PROCENUMPROC lpProc, LPARAM lParam);
diff --git a/plugins/Variables/src/parse_alias.h b/plugins/Variables/src/parse_alias.h
index 8cec5ded4f..15b70f9ae4 100644
--- a/plugins/Variables/src/parse_alias.h
+++ b/plugins/Variables/src/parse_alias.h
@@ -17,6 +17,8 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+#pragma once
+
#define ADDALIAS L"alias"
int isValidTokenChar(wchar_t tc);
diff --git a/plugins/Variables/src/parse_external.h b/plugins/Variables/src/parse_external.h
index 2aa33f3bbd..3b44bca045 100644
--- a/plugins/Variables/src/parse_external.h
+++ b/plugins/Variables/src/parse_external.h
@@ -17,6 +17,8 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+#pragma once
+
#define WINAMPSONG L"winampsong"
#define WINAMPSTATE L"winampstate"
#define DEF_WINAMPTITLE "Winamp3"
diff --git a/plugins/Variables/src/parse_inet.h b/plugins/Variables/src/parse_inet.h
index f3c4b46175..96acef8897 100644
--- a/plugins/Variables/src/parse_inet.h
+++ b/plugins/Variables/src/parse_inet.h
@@ -17,6 +17,8 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+#pragma once
+
#define URLENC L"urlenc"
#define URLDEC L"urldec"
#define NTOA L"ntoa"
diff --git a/plugins/Variables/src/parse_logic.h b/plugins/Variables/src/parse_logic.h
index 6d6803ee7f..7c5debd507 100644
--- a/plugins/Variables/src/parse_logic.h
+++ b/plugins/Variables/src/parse_logic.h
@@ -17,6 +17,8 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+#pragma once
+
#define AND L"and"
#define STR_FALSE L"false"
#define FOR L"for"
diff --git a/plugins/Variables/src/parse_math.h b/plugins/Variables/src/parse_math.h
index 300e3604eb..b527572dfd 100644
--- a/plugins/Variables/src/parse_math.h
+++ b/plugins/Variables/src/parse_math.h
@@ -17,6 +17,8 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+#pragma once
+
#define ADD L"add"
#define DIV L"div"
#define HEX L"hex"
diff --git a/plugins/Variables/src/parse_metacontacts.h b/plugins/Variables/src/parse_metacontacts.h
index 21ddd6bbeb..9f8aa9cb7d 100644
--- a/plugins/Variables/src/parse_metacontacts.h
+++ b/plugins/Variables/src/parse_metacontacts.h
@@ -17,6 +17,8 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+#pragma once
+
#define MC_GETPARENT L"mc_getparent"
#define MC_GETDEFAULT L"mc_getdefault"
#define MC_GETMOSTONLINE L"mc_getmostonline"
diff --git a/plugins/Variables/src/parse_miranda.h b/plugins/Variables/src/parse_miranda.h
index b5096cb4f0..8714c05ccd 100644
--- a/plugins/Variables/src/parse_miranda.h
+++ b/plugins/Variables/src/parse_miranda.h
@@ -17,6 +17,8 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+#pragma once
+
#define VERSIONSTRING L"mirandaversion"
#define CODETOSTATUS L"code2status"
#define CONTACT L"contact"
diff --git a/plugins/Variables/src/parse_regexp.h b/plugins/Variables/src/parse_regexp.h
index 6d058e646a..7242b74ab5 100644
--- a/plugins/Variables/src/parse_regexp.h
+++ b/plugins/Variables/src/parse_regexp.h
@@ -17,5 +17,7 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+#pragma once
+
#define REGEXPCHECK L"regexp_check"
#define REGEXPSUBSTR L"regexp_substr"
diff --git a/plugins/Variables/src/parse_str.h b/plugins/Variables/src/parse_str.h
index 3c7232a137..7f23c2a01a 100644
--- a/plugins/Variables/src/parse_str.h
+++ b/plugins/Variables/src/parse_str.h
@@ -17,6 +17,8 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+#pragma once
+
#define MIR_CAPS L"caps"
#define MIR_CAPS2 L"caps2"
#define MIR_CRLF L"crlf"
diff --git a/plugins/Variables/src/parse_system.h b/plugins/Variables/src/parse_system.h
index b900f53488..c35444007d 100644
--- a/plugins/Variables/src/parse_system.h
+++ b/plugins/Variables/src/parse_system.h
@@ -17,6 +17,8 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+#pragma once
+
#define COMPUTERNAME L"computername"
#define CPULOAD L"cpuload"
#define CDATE L"cdate"
diff --git a/plugins/Variables/src/parse_variables.h b/plugins/Variables/src/parse_variables.h
index ea83c3b1e0..88090b327d 100644
--- a/plugins/Variables/src/parse_variables.h
+++ b/plugins/Variables/src/parse_variables.h
@@ -17,6 +17,8 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+#pragma once
+
typedef struct {
wchar_t *szName;
wchar_t *szText;
diff --git a/plugins/Variables/src/parse_xml.h b/plugins/Variables/src/parse_xml.h
index 51df56be79..393fd8a997 100644
--- a/plugins/Variables/src/parse_xml.h
+++ b/plugins/Variables/src/parse_xml.h
@@ -1,2 +1,5 @@
+
+#pragma once
+
#define XSLTF "xsltf"
#define XSLTS "xslts" \ No newline at end of file
diff --git a/plugins/Variables/src/stdafx.h b/plugins/Variables/src/stdafx.h
index 9f62ae75ec..bcedfe8a8e 100644
--- a/plugins/Variables/src/stdafx.h
+++ b/plugins/Variables/src/stdafx.h
@@ -17,6 +17,8 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+#pragma once
+
#define _CRT_NON_CONFORMING_SWPRINTFS
#include <malloc.h>
diff --git a/plugins/Weather/src/stdafx.h b/plugins/Weather/src/stdafx.h
index 6242d93cae..d9ec87c558 100644
--- a/plugins/Weather/src/stdafx.h
+++ b/plugins/Weather/src/stdafx.h
@@ -22,6 +22,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
the structs, and the primitives for some of the functions.
*/
+#pragma once
+
//============ THE INCLUDES ===========
#include <share.h>
diff --git a/plugins/WebView/src/stdafx.h b/plugins/WebView/src/stdafx.h
index 2dc3a797e8..3ce8c77b06 100644
--- a/plugins/WebView/src/stdafx.h
+++ b/plugins/WebView/src/stdafx.h
@@ -1,3 +1,5 @@
+#pragma once
+
#include <windows.h>
#include <shlwapi.h>
#include <Richedit.h>
diff --git a/plugins/WebView/src/webview.h b/plugins/WebView/src/webview.h
index 28a897de58..b144ade234 100644
--- a/plugins/WebView/src/webview.h
+++ b/plugins/WebView/src/webview.h
@@ -20,6 +20,8 @@
* Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#pragma once
+
#define CFM_BACKCOLOR 0x04000000
#define MODULENAME "WebView"
diff --git a/plugins/WhoUsesMyFiles/src/stdafx.h b/plugins/WhoUsesMyFiles/src/stdafx.h
index 66c4fc31fa..a653df93c0 100644
--- a/plugins/WhoUsesMyFiles/src/stdafx.h
+++ b/plugins/WhoUsesMyFiles/src/stdafx.h
@@ -1,3 +1,6 @@
+
+#pragma once
+
#include <windows.h>
#include <lm.h>
#include <locale.h>
diff --git a/plugins/WinterSpeak/src/SpeakAnnounce.h b/plugins/WinterSpeak/src/SpeakAnnounce.h
index 0e0ad5bca4..6651fae48b 100644
--- a/plugins/WinterSpeak/src/SpeakAnnounce.h
+++ b/plugins/WinterSpeak/src/SpeakAnnounce.h
@@ -1,7 +1,6 @@
#pragma once
#include "stdafx.h"
-#include <m_database.h>
class SpeakAnnounce
{
diff --git a/plugins/WinterSpeak/src/stdafx.h b/plugins/WinterSpeak/src/stdafx.h
index 458d190cd2..262072d95f 100644
--- a/plugins/WinterSpeak/src/stdafx.h
+++ b/plugins/WinterSpeak/src/stdafx.h
@@ -1,3 +1,5 @@
+#pragma once
+
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
@@ -32,6 +34,10 @@
#include "AnnounceDialog.h"
#include "AnnounceDatabase.h"
+#include "UserInformation.h"
+#include "EventInformation.h"
+#include "ProtocolInformation.h"
+
#include "SpeakAnnounce.h"
#include "ConfigDatabase.h"
@@ -39,6 +45,3 @@
#include "Subject.h"
#include "SpeechInterface.h"
#include "SpeakConfig.h"
-#include "UserInformation.h"
-#include "EventInformation.h"
-#include "ProtocolInformation.h" \ No newline at end of file
diff --git a/plugins/WinterSpeak/src/voice_desc.h b/plugins/WinterSpeak/src/voice_desc.h
index 37ae72b0e9..dcc6be877b 100644
--- a/plugins/WinterSpeak/src/voice_desc.h
+++ b/plugins/WinterSpeak/src/voice_desc.h
@@ -1,3 +1,5 @@
+#pragma once
+
#include <string>
struct VoiceDesc
@@ -7,4 +9,4 @@ struct VoiceDesc
int volume;
int pitch;
int rate;
-}; \ No newline at end of file
+};
diff --git a/plugins/XSoundNotify/src/stdafx.h b/plugins/XSoundNotify/src/stdafx.h
index 47e1176e07..04ae7ee456 100644
--- a/plugins/XSoundNotify/src/stdafx.h
+++ b/plugins/XSoundNotify/src/stdafx.h
@@ -1,3 +1,5 @@
+#pragma once
+
#include <windows.h>
#include <Shlwapi.h>
diff --git a/plugins/YARelay/src/stdafx.h b/plugins/YARelay/src/stdafx.h
index eef4c08ce8..828b190b39 100644
--- a/plugins/YARelay/src/stdafx.h
+++ b/plugins/YARelay/src/stdafx.h
@@ -17,6 +17,8 @@ Features:
*/
+#pragma once
+
#include <windows.h>
#include <time.h>
#include <malloc.h>
diff --git a/plugins/ZeroNotification/src/stdafx.h b/plugins/ZeroNotification/src/stdafx.h
index bd1e1dc792..245923a2aa 100644
--- a/plugins/ZeroNotification/src/stdafx.h
+++ b/plugins/ZeroNotification/src/stdafx.h
@@ -1,3 +1,5 @@
+#pragma once
+
#include <windows.h>
#include <commctrl.h>
diff --git a/plugins/ZeroSwitch/src/stdafx.h b/plugins/ZeroSwitch/src/stdafx.h
index b2583c407e..bac655b9fc 100644
--- a/plugins/ZeroSwitch/src/stdafx.h
+++ b/plugins/ZeroSwitch/src/stdafx.h
@@ -3,6 +3,8 @@
// are changed infrequently
//
+#pragma once
+
#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
// Windows Header Files:
#include <windows.h>
diff --git a/plugins/wbOSD/src/stdafx.h b/plugins/wbOSD/src/stdafx.h
index b3652aca22..a07c40a770 100644
--- a/plugins/wbOSD/src/stdafx.h
+++ b/plugins/wbOSD/src/stdafx.h
@@ -7,6 +7,8 @@ This plugin tries to become miranda's standard OSD ;-)
Distributed under GNU's GPL 2 or later
*/
+#pragma once
+
#include <windows.h>
#include <shlwapi.h>
#include <commctrl.h>