From: Chris Elliott Date: Sat, 19 Apr 2003 19:25:28 +0000 (+0000) Subject: update to make digitalmars link - I really don't like the extern C declarations X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/cc972ac67ece48cce61e5a991828970d705313b0 update to make digitalmars link - I really don't like the extern C declarations git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20289 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/app.cpp b/src/msw/app.cpp index 390b846cc3..e91969f481 100644 --- a/src/msw/app.cpp +++ b/src/msw/app.cpp @@ -151,7 +151,11 @@ HICON wxDEFAULT_MDIPARENTFRAME_ICON = (HICON) NULL; HBRUSH wxDisableButtonBrush = (HBRUSH) 0; +#ifdef __DIGITALMARS__ +extern "C" LRESULT WXDLLEXPORT APIENTRY wxWndProc(HWND, UINT, WPARAM, LPARAM); +#else LRESULT WXDLLEXPORT APIENTRY wxWndProc(HWND, UINT, WPARAM, LPARAM); +#endif // FIXME wxUSE_ON_FATAL_EXCEPTION is only supported for VC++ now because it // needs compiler support for Win32 SEH. Others (especially Borland) diff --git a/src/msw/utils.cpp b/src/msw/utils.cpp index c941c45a57..5b083fbd03 100644 --- a/src/msw/utils.cpp +++ b/src/msw/utils.cpp @@ -1319,7 +1319,11 @@ static HCURSOR gs_wxBusyCursor = 0; // new, busy cursor static HCURSOR gs_wxBusyCursorOld = 0; // old cursor static int gs_wxBusyCursorCount = 0; +#ifdef __DIGITALMARS__ +extern "C" HCURSOR wxGetCurrentBusyCursor() +#else extern HCURSOR wxGetCurrentBusyCursor() +#endif { return gs_wxBusyCursor; } diff --git a/src/msw/window.cpp b/src/msw/window.cpp index 1d21f036b7..bad8b941b4 100644 --- a/src/msw/window.cpp +++ b/src/msw/window.cpp @@ -170,15 +170,25 @@ static bool gs_hasStdCmap = FALSE; // --------------------------------------------------------------------------- // the window proc for all our windows +#ifdef __DIGITALMARS__ +extern "C" LRESULT WXDLLEXPORT APIENTRY _EXPORT wxWndProc(HWND hWnd, UINT message, + WPARAM wParam, LPARAM lParam); +#else LRESULT WXDLLEXPORT APIENTRY _EXPORT wxWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam); +#endif + #ifdef __WXDEBUG__ const char *wxGetMessageName(int message); #endif //__WXDEBUG__ void wxRemoveHandleAssociation(wxWindowMSW *win); -void wxAssociateWinWithHandle(HWND hWnd, wxWindowMSW *win); +#ifdef __DIGITALMARS__ +extern "C" void wxAssociateWinWithHandle(HWND hWnd, wxWindowMSW *win); +#else +extern void wxAssociateWinWithHandle(HWND hWnd, wxWindowMSW *win); +#endif wxWindow *wxFindWinFromHandle(WXHWND hWnd); // this magical function is used to translate VK_APPS key presses to right @@ -3310,6 +3320,7 @@ bool wxWindowMSW::HandleDestroy() // delete our drop target if we've got one #if wxUSE_DRAG_AND_DROP + if ( m_dropTarget != NULL ) { m_dropTarget->Revoke(m_hWnd); @@ -3471,6 +3482,10 @@ bool wxWindowMSW::HandleDropFiles(WXWPARAM wParam) #endif } +#ifdef __DIGITALMARS__ +extern "C" HCURSOR wxGetCurrentBusyCursor(); +#endif + bool wxWindowMSW::HandleSetCursor(WXHWND WXUNUSED(hWnd), short nHitTest, int WXUNUSED(mouseMsg))