From 08677d0cb6a9d7e799e315fd3a6f8ed919ce4d90 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Tue, 29 Mar 2016 19:52:51 +0000 Subject: Clean mac.H of a few useless #include directives. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11468 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- FL/mac.H | 8 ++------ src/drivers/Cocoa/Fl_Cocoa_Screen_Driver.H | 1 + 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/FL/mac.H b/FL/mac.H index 48fd2255d..0036a2dd9 100644 --- a/FL/mac.H +++ b/FL/mac.H @@ -33,10 +33,9 @@ typedef class FLWindow *Window; // pointer to the FLWindow objective-c class #endif // __OBJC__ #include -#include "src/drivers/Darwin/Fl_Darwin_System_Driver.H" +#include #if !(defined(FL_LIBRARY) || defined(FL_INTERNALS)) // this part is used when compiling an application program -# include typedef struct CGContext* CGContextRef; typedef struct OpaquePMPrintSettings* PMPrintSettings; @@ -107,12 +106,9 @@ struct flCocoaRegion { CGRect *rects; }; // a region is the union of a series of rectangles -# include "Fl_Window.H" +# include # include "../src/Fl_Font.H" -// Some random X equivalents -struct XPoint { int x, y; }; -struct XRectangle {int x, y, width, height;}; #ifndef CGFLOAT_DEFINED //appears with 10.5 in CGBase.h #if defined(__LP64__) && __LP64__ typedef double CGFloat; diff --git a/src/drivers/Cocoa/Fl_Cocoa_Screen_Driver.H b/src/drivers/Cocoa/Fl_Cocoa_Screen_Driver.H index 75b64fe6b..f9713f1aa 100644 --- a/src/drivers/Cocoa/Fl_Cocoa_Screen_Driver.H +++ b/src/drivers/Cocoa/Fl_Cocoa_Screen_Driver.H @@ -45,6 +45,7 @@ class Fl_Window; class FL_EXPORT Fl_Cocoa_Screen_Driver : public Fl_Screen_Driver { protected: + struct XRectangle {int x, y, width, height;}; XRectangle screens[MAX_SCREENS]; float dpi_h[MAX_SCREENS]; float dpi_v[MAX_SCREENS]; -- cgit v1.2.3