From 98e9042a53c1927fda40724827e35d65a43f3c22 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Tue, 28 Dec 2010 18:14:59 +0000 Subject: Made sure FL/x.H is included only when necessary. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8130 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- FL/Fl_Device.H | 7 ------- FL/Fl_Paged_Device.H | 1 + FL/Fl_Printer.H | 3 +++ FL/fl_draw.H | 7 ++++--- FL/mac.H | 1 + 5 files changed, 9 insertions(+), 10 deletions(-) (limited to 'FL') diff --git a/FL/Fl_Device.H b/FL/Fl_Device.H index 6b19b914d..bb369d917 100644 --- a/FL/Fl_Device.H +++ b/FL/Fl_Device.H @@ -33,18 +33,11 @@ #ifndef Fl_Device_H #define Fl_Device_H -#include #include #include #include #include #include -#ifdef WIN32 -#include -#elif defined(__APPLE__) -#else -#include -#endif class Fl_Graphics_Driver; class Fl_Display_Device; diff --git a/FL/Fl_Paged_Device.H b/FL/Fl_Paged_Device.H index 8de4f623b..1efb2aed1 100644 --- a/FL/Fl_Paged_Device.H +++ b/FL/Fl_Paged_Device.H @@ -33,6 +33,7 @@ #define Fl_Paged_Device_H #include +#include /** \brief Number of elements in enum Page_Format */ #define NO_PAGE_FORMATS 30 /* MSVC6 compilation fix */ diff --git a/FL/Fl_Printer.H b/FL/Fl_Printer.H index 00f85856a..435834f40 100644 --- a/FL/Fl_Printer.H +++ b/FL/Fl_Printer.H @@ -31,6 +31,7 @@ #ifndef Fl_Printer_H #define Fl_Printer_H +#include #include #include #include @@ -39,6 +40,8 @@ #include #if !(defined(__APPLE__) || defined(WIN32)) #include +#elif defined(WIN32) +#include #endif #if defined(__APPLE__) || defined(WIN32) || defined(FL_DOXYGEN) diff --git a/FL/fl_draw.H b/FL/fl_draw.H index ab605c925..71fe6196f 100644 --- a/FL/fl_draw.H +++ b/FL/fl_draw.H @@ -33,9 +33,10 @@ #ifndef fl_draw_H #define fl_draw_H -#include "Enumerations.H" // for the color names -#include "Fl_Window.H" // for fl_set_spot() -#include "Fl_Device.H" +#include // for Fl_Region +#include // for the color names +#include // for fl_set_spot() +#include // for fl_graphics_driver // Image class... class Fl_Image; diff --git a/FL/mac.H b/FL/mac.H index 3883d2758..d85b63bc1 100644 --- a/FL/mac.H +++ b/FL/mac.H @@ -33,6 +33,7 @@ #if !defined(Fl_X_H) # error "Never use directly; include instead." #endif // !Fl_X_H +#include typedef void* Window; // this is really a pointer to the subclass FLWindow of NSWindow typedef void* Fl_Offscreen; // this is really a CGContextRef -- cgit v1.2.3