From: Vadim Zeitlin Date: Fri, 17 Jul 1998 22:34:15 +0000 (+0000) Subject: compile without STRICT fixed X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/c83d505a201ffeaad1da3bc02795397ab7fd9175 compile without STRICT fixed git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@298 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/printwin.cpp b/src/msw/printwin.cpp index f60b574725..3e1097e3fb 100644 --- a/src/msw/printwin.cpp +++ b/src/msw/printwin.cpp @@ -175,7 +175,16 @@ bool wxWindowsPrinter::Print(wxWindow *parent, wxPrintout *printout, bool prompt #if defined(__BORLANDC__) || defined(__GNUWIN32__) ::SetAbortProc((HDC) dc->GetHDC(), (FARPROC) lpAbortProc); #else - ::SetAbortProc((HDC) dc->GetHDC(), (int (_stdcall *)(HDC, int)) lpAbortProc); + ::SetAbortProc((HDC) dc->GetHDC(), (int (_stdcall *) + // cast it to right type only if required + // @@@ it's really cdecl and we're casting it to stdcall - either there is + // something I don't understand or it will crash at first usage + #ifdef STRICT + (HDC, int) + #else + () + #endif + )lpAbortProc); #endif if (!win)