]> git.saurik.com Git - wxWidgets.git/commitdiff
type safe proxy typedefs
authorStefan Csomor <csomor@advancedconcepts.ch>
Sat, 27 Mar 2004 06:47:41 +0000 (06:47 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Sat, 27 Mar 2004 06:47:41 +0000 (06:47 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26401 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/defs.h

index af15a048aab31b65788c54be68489dc17c910686..27199b41b3ac4e4d23926aef77d68c08e6b452ea 100644 (file)
@@ -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; */