summaryrefslogtreecommitdiff
path: root/include/m_skin.h
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-09-16 11:48:41 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-09-16 11:48:41 +0000
commitce6e5ab03d58151c4eda36d05a8436d337b2d3c0 (patch)
tree4743bda7441f8093cb0a31d4141e77cb5cfbc174 /include/m_skin.h
parentf627d0bf7a1978a9b8360ada9c199ba9667977b1 (diff)
removed clutch for GCC (it already exists in m_system.h)
git-svn-id: http://svn.miranda-ng.org/main/trunk@1575 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'include/m_skin.h')
-rw-r--r--include/m_skin.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/include/m_skin.h b/include/m_skin.h
index 6f49171901..b881ad73b8 100644
--- a/include/m_skin.h
+++ b/include/m_skin.h
@@ -33,9 +33,9 @@ extern int hLangpack;
//returns NULL if id is invalid, but will always succeed for a valid id
#define MS_SKIN_LOADICON "Skin/Icons/Load"
//nice function to wrap this:
-__inline static HICON LoadSkinnedIcon(int id) {return (HICON)CallService(MS_SKIN_LOADICON, id, 0);}
-__inline static HANDLE LoadSkinnedIconHandle(int id) {return (HANDLE)CallService(MS_SKIN_LOADICON, id, 1);}
-__inline static HICON LoadSkinnedIconBig(int id) {return (HICON)CallService(MS_SKIN_LOADICON, id, 2);}
+__forceinline HICON LoadSkinnedIcon(int id) {return (HICON)CallService(MS_SKIN_LOADICON, id, 0);}
+__forceinline HANDLE LoadSkinnedIconHandle(int id) {return (HANDLE)CallService(MS_SKIN_LOADICON, id, 1);}
+__forceinline HICON LoadSkinnedIconBig(int id) {return (HICON)CallService(MS_SKIN_LOADICON, id, 2);}
//event icons
#define SKINICON_EVENT_MESSAGE 100
@@ -113,8 +113,8 @@ __inline static HICON LoadSkinnedIconBig(int id) {return (HICON)CallService(MS_S
#define MS_SKIN_LOADPROTOICON "Skin/Icons/LoadProto"
#define MS_SKIN_LOADPROTOICONBIG "Skin/Icons/LoadProtoBig"
//nice function to wrap this:
-__inline static HICON LoadSkinnedProtoIcon(const char *szProto, int status) {return (HICON)CallService(MS_SKIN_LOADPROTOICON, (WPARAM)szProto, status);}
-__inline static HICON LoadSkinnedProtoIconBig(const char *szProto, int status) {return (HICON)CallService(MS_SKIN_LOADPROTOICONBIG, (WPARAM)szProto, status);}
+__forceinline HICON LoadSkinnedProtoIcon(const char *szProto, int status) {return (HICON)CallService(MS_SKIN_LOADPROTOICON, (WPARAM)szProto, status);}
+__forceinline HICON LoadSkinnedProtoIconBig(const char *szProto, int status) {return (HICON)CallService(MS_SKIN_LOADPROTOICONBIG, (WPARAM)szProto, status);}
//add a new sound so it has a default and can be changed in the options dialog
//wParam = hLangpack
@@ -148,7 +148,7 @@ typedef struct {
}
SKINSOUNDDESCEX;
-__inline static INT_PTR SkinAddNewSoundEx(const char *name, const char *section, const char *description)
+__forceinline INT_PTR SkinAddNewSoundEx(const char *name, const char *section, const char *description)
{
SKINSOUNDDESCEX ssd = { 0 };
ssd.cbSize = sizeof(ssd);
@@ -158,7 +158,7 @@ __inline static INT_PTR SkinAddNewSoundEx(const char *name, const char *section,
return CallService("Skin/Sounds/AddNew", hLangpack, (LPARAM)&ssd);
}
-__inline static INT_PTR SkinAddNewSound(const char *name, const char *description, const char *defaultFile)
+__forceinline INT_PTR SkinAddNewSound(const char *name, const char *description, const char *defaultFile)
{
SKINSOUNDDESCEX ssd = { 0 };
ssd.cbSize = sizeof(ssd);
@@ -168,7 +168,7 @@ __inline static INT_PTR SkinAddNewSound(const char *name, const char *descriptio
return CallService("Skin/Sounds/AddNew", hLangpack, (LPARAM)&ssd);
}
-__inline static INT_PTR SkinAddNewSoundExT(const char *name, const TCHAR *section, const TCHAR *description)
+__forceinline INT_PTR SkinAddNewSoundExT(const char *name, const TCHAR *section, const TCHAR *description)
{
SKINSOUNDDESCEX ssd = { 0 };
ssd.cbSize = sizeof(ssd);
@@ -179,7 +179,7 @@ __inline static INT_PTR SkinAddNewSoundExT(const char *name, const TCHAR *sectio
return CallService("Skin/Sounds/AddNew", hLangpack, (LPARAM)&ssd);
}
-__inline static INT_PTR Skin_AddSound(SKINSOUNDDESCEX *ssd)
+__forceinline INT_PTR Skin_AddSound(SKINSOUNDDESCEX *ssd)
{
return CallService("Skin/Sounds/AddNew", hLangpack, (LPARAM)ssd);
}
@@ -191,7 +191,7 @@ __inline static INT_PTR Skin_AddSound(SKINSOUNDDESCEX *ssd)
//function will not fail, it will play the Windows default sound instead.
#define MS_SKIN_PLAYSOUND "Skin/Sounds/Play"
-__inline static INT_PTR SkinPlaySound(const char *name)
+__forceinline INT_PTR SkinPlaySound(const char *name)
{
return CallService(MS_SKIN_PLAYSOUND, 0, (LPARAM)name);
}