git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@298
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
#if defined(__BORLANDC__) || defined(__GNUWIN32__)
::SetAbortProc((HDC) dc->GetHDC(), (FARPROC) lpAbortProc);
#else
#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);