From 37123da440dc9db0338a13464f9ab21825c20002 Mon Sep 17 00:00:00 2001 From: David Webster Date: Fri, 1 Sep 2000 13:51:48 +0000 Subject: [PATCH] Fix to properly define WXFARPROC for OS/2 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8232 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/defs.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/wx/defs.h b/include/wx/defs.h index cc6983b3fc..9959ec2d59 100644 --- a/include/wx/defs.h +++ b/include/wx/defs.h @@ -1843,6 +1843,13 @@ typedef struct tagLOGPALETTE typedef int (*WXFARPROC)(); #elif defined(__WIN32__) typedef int (__stdcall *WXFARPROC)(); +#elif defined(__WXPM__) +# if defined(__VISAGECPP__) && (__IBMCPP__ < 400 || __IBMC__ < 400 ) + // VA 3.0 for some reason needs base data types when typedefing a proc proto??? + typedef void* (_System *WXFARPROC)(unsigned long, unsigned long, void*, void*); +# else + typedef WXRESULT (_System *WXFARPROC)(WXHWND, WXMSGID, WXWPARAM, WXLPARAM); +# endif #else typedef int (*WXFARPROC)(); #endif