X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2bda0e173844e8e0f8acf4e8ad8b5c26e5c6fe5d..da468d387db3b7e22b008bf08be2ff6b202508fb:/include/wx/msw/private.h diff --git a/include/wx/msw/private.h b/include/wx/msw/private.h index 5a3635e748..adaeb99ffc 100644 --- a/include/wx/msw/private.h +++ b/include/wx/msw/private.h @@ -38,9 +38,18 @@ void WXDLLEXPORT wxFillLogFont(LOGFONT *logFont, wxFont *font); wxFont WXDLLEXPORT wxCreateFontFromLogFont(LOGFONT *logFont); // , bool createNew = TRUE); #ifdef __GNUWIN32__ -#define CASTWNDPROC (long unsigned) +# define CASTWNDPROC (long unsigned) #else -#define CASTWNDPROC +# ifdef __BORLANDC__ +# define CASTWNDPROC +# else +# ifdef __WIN32__ + typedef long (_stdcall * WndProcCast) (HWND, unsigned int, unsigned int, long); +# define CASTWNDPROC (WndProcCast) +# else +# define CASTWNDPROC +# endif +# endif #endif #if !defined(APIENTRY) // NT defines APIENTRY, 3.x not