From c8fbefe8f38a74bfaea88a195c71a6e0c94c7a6a Mon Sep 17 00:00:00 2001 From: ghazan Date: Sun, 19 Dec 2021 17:45:07 +0300 Subject: Miranda.h - first version that compiles under Linux --- include/m_types.h | 5 ++++- src/mir_app/src/miranda.h | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/include/m_types.h b/include/m_types.h index 73aa902cc7..8538f6c2f2 100644 --- a/include/m_types.h +++ b/include/m_types.h @@ -56,7 +56,7 @@ typedef uint8_t BYTE; typedef uint16_t WORD; typedef uint32_t DWORD, UINT, COLORREF; typedef intptr_t WPARAM, LPARAM, INT_PTR; -typedef uintptr_t UINT_PTR, LRESULT; +typedef uintptr_t UINT_PTR, DWORD_PTR, LRESULT; typedef char *LPSTR; typedef const char *LPCSTR; typedef wchar_t *LPWSTR, *LPTSTR; @@ -66,6 +66,9 @@ typedef sockaddr_in SOCKADDR_IN; struct RECT { int left, top, right, bottom; }; struct POINT { int x, y; }; struct SIZE { int width, height; }; +struct MSG; +struct LOGFONTA; +struct LOGFONTW; #define MIR_EXPORT __attribute__((__visibility__("default"))) #define MIR_IMPORT diff --git a/src/mir_app/src/miranda.h b/src/mir_app/src/miranda.h index dcf7b9d8fe..940751218c 100644 --- a/src/mir_app/src/miranda.h +++ b/src/mir_app/src/miranda.h @@ -174,7 +174,10 @@ INT_PTR stubChainRecv(WPARAM, LPARAM); BOOL IsAeroMode(); +#ifdef _WINDOWS bool ProcessFileDrop(HDROP hDrop, MCONTACT hContact); +#endif + void RegisterModule(CMPluginBase*); void HotkeyToName(wchar_t *buf, int size, BYTE shift, BYTE key); -- cgit v1.2.3