X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c4e7c2aa5822f9a6e97d8d7848b95ea2eadcd98b..da468d387db3b7e22b008bf08be2ff6b202508fb:/include/wx/msw/private.h diff --git a/include/wx/msw/private.h b/include/wx/msw/private.h index 4e81d182ef..adaeb99ffc 100644 --- a/include/wx/msw/private.h +++ b/include/wx/msw/private.h @@ -38,10 +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 -typedef long (_stdcall * WndProcCast) (HWND, unsigned int, unsigned int, long); -#define CASTWNDPROC (WndProcCast) +# 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