summaryrefslogtreecommitdiff
path: root/src/mir_app
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 /src/mir_app
parent1cd49f75aa0dd71a1df44a1740dd4c15fe5656cf (diff)
guard headers
Diffstat (limited to 'src/mir_app')
-rw-r--r--src/mir_app/src/FontService.h2
-rw-r--r--src/mir_app/src/IcoLib.h2
-rw-r--r--src/mir_app/src/chat.h2
-rw-r--r--src/mir_app/src/clc.h2
-rw-r--r--src/mir_app/src/database.h2
-rw-r--r--src/mir_app/src/findadd.h2
-rw-r--r--src/mir_app/src/langpack.h2
-rw-r--r--src/mir_app/src/metacontacts.h2
-rw-r--r--src/mir_app/src/miranda.h2
-rw-r--r--src/mir_app/src/netlib.h2
-rw-r--r--src/mir_app/src/plugins.h1
-rw-r--r--src/mir_app/src/profilemanager.h2
-rw-r--r--src/mir_app/src/skin.h2
-rw-r--r--src/mir_app/src/stdafx.h2
14 files changed, 27 insertions, 0 deletions
diff --git a/src/mir_app/src/FontService.h b/src/mir_app/src/FontService.h
index 0a8b83126f..083c235ffe 100644
--- a/src/mir_app/src/FontService.h
+++ b/src/mir_app/src/FontService.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 "m_fontservice.h"
// a font identifier structure - used for registering a font, and getting one out again
diff --git a/src/mir_app/src/IcoLib.h b/src/mir_app/src/IcoLib.h
index 4e781f21b8..cccd788220 100644
--- a/src/mir_app/src/IcoLib.h
+++ b/src/mir_app/src/IcoLib.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 SECTIONPARAM_MAKE(index, level, flags) MAKELONG((index)&0xFFFF, MAKEWORD(level, flags))
#define SECTIONPARAM_INDEX(lparam) LOWORD(lparam)
#define SECTIONPARAM_LEVEL(lparam) LOBYTE(HIWORD(lparam))
diff --git a/src/mir_app/src/chat.h b/src/mir_app/src/chat.h
index 2cbaa74569..69ee4bde3e 100644
--- a/src/mir_app/src/chat.h
+++ b/src/mir_app/src/chat.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
+
#include <m_smileyadd.h>
#include <m_popup.h>
#include <m_fontservice.h>
diff --git a/src/mir_app/src/clc.h b/src/mir_app/src/clc.h
index f13fc2d1ea..4f17a93dc5 100644
--- a/src/mir_app/src/clc.h
+++ b/src/mir_app/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
+
struct ClcContact : public ClcContactBase
{
};
diff --git a/src/mir_app/src/database.h b/src/mir_app/src/database.h
index 19e665c127..d5fa61ebf6 100644
--- a/src/mir_app/src/database.h
+++ b/src/mir_app/src/database.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
+
class MDatabaseCache : public MIDatabaseCache
{
HANDLE m_hCacheHeap;
diff --git a/src/mir_app/src/findadd.h b/src/mir_app/src/findadd.h
index 07ecabdbe7..3620a05fc3 100644
--- a/src/mir_app/src/findadd.h
+++ b/src/mir_app/src/findadd.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 PF1_ANYSEARCH (PF1_BASICSEARCH | PF1_EXTSEARCHUI | PF1_SEARCHBYEMAIL | PF1_SEARCHBYNAME | PF1_EXTSEARCH)
struct ListSearchResult
diff --git a/src/mir_app/src/langpack.h b/src/mir_app/src/langpack.h
index 92d60c0fe8..b45a9638b1 100644
--- a/src/mir_app/src/langpack.h
+++ b/src/mir_app/src/langpack.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
+
/////////////////////////////////////////////////////////////////////////////////////////
static INT_PTR srvGetDefaultCodePage(WPARAM, LPARAM);
diff --git a/src/mir_app/src/metacontacts.h b/src/mir_app/src/metacontacts.h
index bad3f6cbaa..48aaa0f240 100644
--- a/src/mir_app/src/metacontacts.h
+++ b/src/mir_app/src/metacontacts.h
@@ -20,6 +20,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 MAX_CONTACTS 20
#define META_FILTER "MetaContactsFilter"
diff --git a/src/mir_app/src/miranda.h b/src/mir_app/src/miranda.h
index 0e2c27aec4..bb06f8ae02 100644
--- a/src/mir_app/src/miranda.h
+++ b/src/mir_app/src/miranda.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
+
typedef HRESULT (STDAPICALLTYPE *pfnDrawThemeTextEx)(HTHEME, HDC, int, int, LPCWSTR, int, DWORD, LPRECT, const struct _DTTOPTS *);
typedef HRESULT (STDAPICALLTYPE *pfnSetWindowThemeAttribute)(HWND, enum WINDOWTHEMEATTRIBUTETYPE, PVOID, DWORD);
typedef HRESULT (STDAPICALLTYPE *pfnBufferedPaintInit)(void);
diff --git a/src/mir_app/src/netlib.h b/src/mir_app/src/netlib.h
index cb0bf84106..e9c20e9042 100644
--- a/src/mir_app/src/netlib.h
+++ b/src/mir_app/src/netlib.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 NLH_INVALID 0
#define NLH_USER 'USER'
#define NLH_CONNECTION 'CONN'
diff --git a/src/mir_app/src/plugins.h b/src/mir_app/src/plugins.h
index 2695a44cf1..f871ef3339 100644
--- a/src/mir_app/src/plugins.h
+++ b/src/mir_app/src/plugins.h
@@ -1,3 +1,4 @@
+#pragma once
// returns true if the API exports were good, otherwise, passed in data is returned
#define CHECKAPI_NONE 0
diff --git a/src/mir_app/src/profilemanager.h b/src/mir_app/src/profilemanager.h
index 3eb9c2fe4c..da5001b4f5 100644
--- a/src/mir_app/src/profilemanager.h
+++ b/src/mir_app/src/profilemanager.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
+
struct PROFILEMANAGERDATA
{
wchar_t *ptszProfile; // in/out
diff --git a/src/mir_app/src/skin.h b/src/mir_app/src/skin.h
index 0ba130ee00..d44b75c3e0 100644
--- a/src/mir_app/src/skin.h
+++ b/src/mir_app/src/skin.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 DBMODULENAME "SkinHotKeys"
#define WM_HOTKEYUNREGISTERED (WM_USER+721)
diff --git a/src/mir_app/src/stdafx.h b/src/mir_app/src/stdafx.h
index e38ca604e6..5c846a3de7 100644
--- a/src/mir_app/src/stdafx.h
+++ b/src/mir_app/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 _ALPHA_BASE_ 1 // defined for CVS builds
#define _ALPHA_FUSE_ 1 // defined for fuse powered core