From 34a336adb6796a596e3d59846bd23370f936921f Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Sat, 27 Mar 2004 06:47:41 +0000 Subject: [PATCH] type safe proxy typedefs git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26401 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/defs.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/include/wx/defs.h b/include/wx/defs.h index af15a048aa..27199b41b3 100644 --- a/include/wx/defs.h +++ b/include/wx/defs.h @@ -2035,6 +2035,8 @@ enum wxUpdateUI #ifdef __WXMAC__ +#define WX_OPAQUE_TYPE( name ) struct wxOpaque##name + typedef unsigned char WXCOLORREF[6]; typedef void* WXHBITMAP; typedef void* WXHMETAFILE; @@ -2054,8 +2056,11 @@ typedef unsigned int WXUINT; typedef unsigned long WXDWORD; typedef unsigned short WXWORD; -typedef void* WXWidget; -typedef void* WXWindow; + +//typedef void* WXWidget; +//typedef void* WXWindow; +typedef WX_OPAQUE_TYPE(ControlRef ) * WXWidget ; +typedef WX_OPAQUE_TYPE(WindowRef) * WXWindow ; typedef void* WXDisplay; /* typedef WindowPtr WXHWND; */