summaryrefslogtreecommitdiff
path: root/FL
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2011-11-12 13:06:54 +0000
committerManolo Gouy <Manolo>2011-11-12 13:06:54 +0000
commit409afd29cc021db64c98dff1502c62206c1ed94e (patch)
tree3686bd4da08ccff1eeb344926cac05ca0d7a3464 /FL
parent4fbc7664222c056f78ed5606774434e7b31ca119 (diff)
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
Diffstat (limited to 'FL')
-rw-r--r--FL/mac.H7
1 files changed, 6 insertions, 1 deletions
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 <FL/mac.H> directly; include <FL/x.H> 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 <FL/Fl_Widget.H>