compile without STRICT fixed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@298 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -175,7 +175,16 @@ bool wxWindowsPrinter::Print(wxWindow *parent, wxPrintout *printout, bool prompt
|
|||||||
#if defined(__BORLANDC__) || defined(__GNUWIN32__)
|
#if defined(__BORLANDC__) || defined(__GNUWIN32__)
|
||||||
::SetAbortProc((HDC) dc->GetHDC(), (FARPROC) lpAbortProc);
|
::SetAbortProc((HDC) dc->GetHDC(), (FARPROC) lpAbortProc);
|
||||||
#else
|
#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
|
#endif
|
||||||
|
|
||||||
if (!win)
|
if (!win)
|
||||||
|
Reference in New Issue
Block a user