diff options
-rw-r--r-- | include/m_core.h | 14 | ||||
-rw-r--r-- | include/m_system.h | 7 | ||||
-rw-r--r-- | src/resource.rc | 2 |
3 files changed, 12 insertions, 11 deletions
diff --git a/include/m_core.h b/include/m_core.h index eddbe7ce74..b40dcfad30 100644 --- a/include/m_core.h +++ b/include/m_core.h @@ -210,7 +210,7 @@ MIR_CORE_DLL(void) TranslateDialog_LP(HWND hDlg, int hLang); MIR_CORE_DLL(unsigned int) mir_hash(const void * key, unsigned int len);
#pragma optimize("gt", on)
-__inline unsigned int mir_hashstr(const char * key)
+__forceinline unsigned int mir_hashstr(const char * key)
{
if (key == NULL) return 0;
else {
@@ -218,7 +218,7 @@ __inline unsigned int mir_hashstr(const char * key) return mir_hash(key, len);
} }
-__inline unsigned int mir_hashstrW(const wchar_t * key)
+__forceinline unsigned int mir_hashstrW(const wchar_t * key)
{
if (key == NULL) return 0;
else {
@@ -366,8 +366,8 @@ MIR_CORE_DLL(char*) ltrimp(char *str); // returns pointer to the trimmed portio MIR_CORE_DLL(int) wildcmp(char *name, char *mask);
-__inline char* lrtrim(char* str) { return ltrim(rtrim(str)); };
-__inline char* lrtrimp(char* str) { return ltrimp(rtrim(str)); };
+__forceinline char* lrtrim(char* str) { return ltrim(rtrim(str)); };
+__forceinline char* lrtrimp(char* str) { return ltrimp(rtrim(str)); };
///////////////////////////////////////////////////////////////////////////////
// text conversion functions
@@ -453,15 +453,15 @@ MIR_CORE_DLL(void) Thread_Wait(void); MIR_CORE_DLL(UINT_PTR) forkthread(pThreadFunc, unsigned long stacksize, void *arg);
MIR_CORE_DLL(UINT_PTR) forkthreadex(void *sec, unsigned stacksize, pThreadFuncEx, void* owner, void *arg, unsigned *thraddr);
-_inline HANDLE mir_forkthread(pThreadFunc aFunc, void* arg)
+__forceinline HANDLE mir_forkthread(pThreadFunc aFunc, void* arg)
{ return (HANDLE)forkthread(aFunc, 0, arg);
}
-__inline HANDLE mir_forkthreadex(pThreadFuncEx aFunc, void* arg, int stackSize, unsigned* pThreadID)
+__forceinline HANDLE mir_forkthreadex(pThreadFuncEx aFunc, void* arg, int stackSize, unsigned* pThreadID)
{ return (HANDLE)forkthreadex(NULL, stackSize, aFunc, NULL, arg, pThreadID);
}
-__inline HANDLE mir_forkthreadowner(pThreadFuncOwner aFunc, void* owner, void* arg, unsigned* pThreadID)
+__forceinline HANDLE mir_forkthreadowner(pThreadFuncOwner aFunc, void* owner, void* arg, unsigned* pThreadID)
{ return (HANDLE)forkthreadex(NULL, 0, (pThreadFuncEx)aFunc, owner, arg, pThreadID);
}
diff --git a/include/m_system.h b/include/m_system.h index 4cc9105773..db912fd32c 100644 --- a/include/m_system.h +++ b/include/m_system.h @@ -25,8 +25,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include <tchar.h>
-#include <m_core.h>
-
+ #ifndef MIRANDANAME
#define MIRANDANAME "Miranda IM"
#endif
@@ -46,7 +45,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #define __forceinline static FORCEINLINE
#else
#pragma warning(disable:4244 4245)
-#endif
+#endif
+#include <m_core.h>
+ //miranda/system/modulesloaded
//called after all modules have been successfully initialised
diff --git a/src/resource.rc b/src/resource.rc index ce26b41ac6..36ad9de944 100644 --- a/src/resource.rc +++ b/src/resource.rc @@ -140,7 +140,7 @@ BEGIN PUSHBUTTON "&Run",IDOK,298,194,48,14
PUSHBUTTON "&Exit",IDCANCEL,348,194,48,14
RTEXT "Start in Service Mode with",IDC_SM_LABEL,10,196,106,10
- COMBOBOX IDC_SM_COMBO,120,195,123,12,CBS_DROPDOWNLIST | CBS_SORT | WS_VSCROLL | WS_TABSTOP
+ COMBOBOX IDC_SM_COMBO,120,195,123,72,CBS_DROPDOWNLIST | CBS_SORT | WS_VSCROLL | WS_TABSTOP
END
IDD_FINDADD DIALOGEX 0, 0, 427, 257
|