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 --- protocols/Discord/src/proto.h | 1 + protocols/Dummy/src/dummy.h | 2 ++ protocols/Dummy/src/dummy_proto.h | 2 ++ protocols/ICQCorp/src/stdafx.h | 2 ++ protocols/IRCG/src/irc_dlg.h | 2 ++ protocols/IcqOscarJ/src/icq_advsearch.h | 2 ++ protocols/IcqOscarJ/src/icq_fieldnames.h | 2 ++ protocols/IcqOscarJ/src/stdafx.h | 2 ++ protocols/JabberG/src/jabber_search.h | 2 ++ protocols/JabberG/src/jabber_secur.h | 2 ++ protocols/MSN/src/stdafx.h | 2 ++ protocols/SkypeWeb/src/requests/trouter.h | 2 ++ protocols/Tox/libtox/src/stdafx.h | 1 + protocols/Twitter/src/oauth.dev.h | 2 ++ 14 files changed, 26 insertions(+) (limited to 'protocols') diff --git a/protocols/Discord/src/proto.h b/protocols/Discord/src/proto.h index c701a7b98a..24e4562e1b 100644 --- a/protocols/Discord/src/proto.h +++ b/protocols/Discord/src/proto.h @@ -1,3 +1,4 @@ +#pragma once typedef __int64 SnowFlake; diff --git a/protocols/Dummy/src/dummy.h b/protocols/Dummy/src/dummy.h index 5e06730bc2..67f7da5716 100644 --- a/protocols/Dummy/src/dummy.h +++ b/protocols/Dummy/src/dummy.h @@ -15,6 +15,8 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ +#pragma once + struct CDummyProto; extern LIST dummy_Instances; extern HINSTANCE hInst; diff --git a/protocols/Dummy/src/dummy_proto.h b/protocols/Dummy/src/dummy_proto.h index 08829870cf..3805467547 100644 --- a/protocols/Dummy/src/dummy_proto.h +++ b/protocols/Dummy/src/dummy_proto.h @@ -15,6 +15,8 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ +#pragma once + struct CDummyProto; struct CDummyProto : public PROTO diff --git a/protocols/ICQCorp/src/stdafx.h b/protocols/ICQCorp/src/stdafx.h index 20d37536f2..5aac37d71e 100644 --- a/protocols/ICQCorp/src/stdafx.h +++ b/protocols/ICQCorp/src/stdafx.h @@ -17,6 +17,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +#pragma once + #include #include #include diff --git a/protocols/IRCG/src/irc_dlg.h b/protocols/IRCG/src/irc_dlg.h index 0a23223930..b491278c39 100644 --- a/protocols/IRCG/src/irc_dlg.h +++ b/protocols/IRCG/src/irc_dlg.h @@ -19,6 +19,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 + ///////////////////////////////////////////////////////////////////////////////////////// // Dialogs diff --git a/protocols/IcqOscarJ/src/icq_advsearch.h b/protocols/IcqOscarJ/src/icq_advsearch.h index 74161d4d7d..d04e8b8e31 100644 --- a/protocols/IcqOscarJ/src/icq_advsearch.h +++ b/protocols/IcqOscarJ/src/icq_advsearch.h @@ -22,5 +22,7 @@ // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. // ----------------------------------------------------------------------------- +#pragma once + INT_PTR CALLBACK AdvancedSearchDlgProc(HWND hwndDlg, UINT message, WPARAM wParam, LPARAM lParam); PBYTE createAdvancedSearchStructure(HWND hwndDlg, size_t *length); diff --git a/protocols/IcqOscarJ/src/icq_fieldnames.h b/protocols/IcqOscarJ/src/icq_fieldnames.h index 89b1eee521..d3f60dfe2e 100644 --- a/protocols/IcqOscarJ/src/icq_fieldnames.h +++ b/protocols/IcqOscarJ/src/icq_fieldnames.h @@ -23,6 +23,8 @@ // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. // ----------------------------------------------------------------------------- +#pragma once + struct FieldNamesItem { int code; diff --git a/protocols/IcqOscarJ/src/stdafx.h b/protocols/IcqOscarJ/src/stdafx.h index 8f46a4b768..27c90396b8 100644 --- a/protocols/IcqOscarJ/src/stdafx.h +++ b/protocols/IcqOscarJ/src/stdafx.h @@ -27,6 +27,8 @@ // Includes all header files that should be precompiled to speed up compilation. // ----------------------------------------------------------------------------- +#pragma once + // Windows includes #include #include diff --git a/protocols/JabberG/src/jabber_search.h b/protocols/JabberG/src/jabber_search.h index a869d24c0f..12b508393c 100644 --- a/protocols/JabberG/src/jabber_search.h +++ b/protocols/JabberG/src/jabber_search.h @@ -26,6 +26,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +#pragma once + typedef struct _tagJabberSearchFieldsInfo { wchar_t * szFieldName; diff --git a/protocols/JabberG/src/jabber_secur.h b/protocols/JabberG/src/jabber_secur.h index 4e0d64e2ac..5cdf79a4cf 100644 --- a/protocols/JabberG/src/jabber_secur.h +++ b/protocols/JabberG/src/jabber_secur.h @@ -22,6 +22,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +#pragma once + #include "stdafx.h" // basic class - provides interface for various Jabber auth diff --git a/protocols/MSN/src/stdafx.h b/protocols/MSN/src/stdafx.h index ce46b08d61..13aa98cb49 100644 --- a/protocols/MSN/src/stdafx.h +++ b/protocols/MSN/src/stdafx.h @@ -20,6 +20,8 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ +#pragma once + #include #include diff --git a/protocols/SkypeWeb/src/requests/trouter.h b/protocols/SkypeWeb/src/requests/trouter.h index 76066c0f46..f8a56153c0 100644 --- a/protocols/SkypeWeb/src/requests/trouter.h +++ b/protocols/SkypeWeb/src/requests/trouter.h @@ -15,6 +15,8 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ +#pragma once + class CreateTrouterRequest : public HttpRequest { public: diff --git a/protocols/Tox/libtox/src/stdafx.h b/protocols/Tox/libtox/src/stdafx.h index e69de29bb2..6f70f09bee 100644 --- a/protocols/Tox/libtox/src/stdafx.h +++ b/protocols/Tox/libtox/src/stdafx.h @@ -0,0 +1 @@ +#pragma once diff --git a/protocols/Twitter/src/oauth.dev.h b/protocols/Twitter/src/oauth.dev.h index 13c383b3ab..24deff074c 100644 --- a/protocols/Twitter/src/oauth.dev.h +++ b/protocols/Twitter/src/oauth.dev.h @@ -1,2 +1,4 @@ +#pragma once + #define OAUTH_CONSUMER_KEY L"AwSuQV9A7uXpat81MQB48g" #define OAUTH_CONSUMER_SECRET L"x8pPGCCV5wFs26euODb9gv4VQ4kiuxTp3ed2P8Of4" \ No newline at end of file -- cgit v1.2.3