From 409afd29cc021db64c98dff1502c62206c1ed94e Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Sat, 12 Nov 2011 13:06:54 +0000 Subject: Mac OS: more accurate definition of the Window system-specific type. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9170 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- FL/mac.H | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'FL') diff --git a/FL/mac.H b/FL/mac.H index cd2054172..0b20fd458 100644 --- a/FL/mac.H +++ b/FL/mac.H @@ -25,7 +25,12 @@ # error "Never use directly; include instead." #endif // !Fl_X_H -typedef void* Window; // this is really a pointer to the subclass FLWindow of NSWindow +#ifdef __OBJC__ +@class FLWindow; // a subclass of the NSWindow Cocoa class +typedef FLWindow *Window; +#else +typedef class FLWindow_opaque *Window; // pointer to the FLWindow objective-c class +#endif // __OBJC__ #if !(defined(FL_LIBRARY) || defined(FL_INTERNALS)) // this part is used when compiling an application program # include -- cgit v1.2.3