Author: manolo
Date: 2010-12-28 10:14:59 -0800 (Tue, 28 Dec 2010)
New Revision: 8130
Log:
Made sure FL/x.H is included only when necessary.

Modified:
   branches/branch-1.3/FL/Fl_Device.H
   branches/branch-1.3/FL/Fl_Paged_Device.H
   branches/branch-1.3/FL/Fl_Printer.H
   branches/branch-1.3/FL/fl_draw.H
   branches/branch-1.3/FL/mac.H

Modified: branches/branch-1.3/FL/Fl_Device.H
===================================================================
--- branches/branch-1.3/FL/Fl_Device.H  2010-12-28 15:33:36 UTC (rev 8129)
+++ branches/branch-1.3/FL/Fl_Device.H  2010-12-28 18:14:59 UTC (rev 8130)
@@ -33,18 +33,11 @@
 #ifndef Fl_Device_H
 #define Fl_Device_H
 
-#include <FL/x.H>
 #include <FL/Fl_Plugin.H>
 #include <FL/Fl_Image.H>
 #include <FL/Fl_Bitmap.H>
 #include <FL/Fl_Pixmap.H>
 #include <FL/Fl_RGB_Image.H>
-#ifdef WIN32
-#include <commdlg.h>
-#elif defined(__APPLE__)
-#else
-#include <stdio.h>
-#endif
 
 class Fl_Graphics_Driver;
 class Fl_Display_Device;

Modified: branches/branch-1.3/FL/Fl_Paged_Device.H
===================================================================
--- branches/branch-1.3/FL/Fl_Paged_Device.H    2010-12-28 15:33:36 UTC (rev 
8129)
+++ branches/branch-1.3/FL/Fl_Paged_Device.H    2010-12-28 18:14:59 UTC (rev 
8130)
@@ -33,6 +33,7 @@
 #define Fl_Paged_Device_H
 
 #include <FL/Fl_Device.H>
+#include <FL/Fl_Window.H>
 
 /** \brief Number of elements in enum Page_Format */
 #define NO_PAGE_FORMATS 30 /* MSVC6 compilation fix */

Modified: branches/branch-1.3/FL/Fl_Printer.H
===================================================================
--- branches/branch-1.3/FL/Fl_Printer.H 2010-12-28 15:33:36 UTC (rev 8129)
+++ branches/branch-1.3/FL/Fl_Printer.H 2010-12-28 18:14:59 UTC (rev 8130)
@@ -31,6 +31,7 @@
 #ifndef Fl_Printer_H
 #define Fl_Printer_H
 
+#include <FL/x.H>
 #include <FL/Fl_Paged_Device.H>
 #include <FL/fl_draw.H>
 #include <FL/Fl_Pixmap.H>
@@ -39,6 +40,8 @@
 #include <stdio.h>
 #if !(defined(__APPLE__) || defined(WIN32))
 #include <FL/Fl_PostScript.H>
+#elif defined(WIN32)
+#include <Commdlg.h>
 #endif
 
 #if defined(__APPLE__) || defined(WIN32) || defined(FL_DOXYGEN)

Modified: branches/branch-1.3/FL/fl_draw.H
===================================================================
--- branches/branch-1.3/FL/fl_draw.H    2010-12-28 15:33:36 UTC (rev 8129)
+++ branches/branch-1.3/FL/fl_draw.H    2010-12-28 18:14:59 UTC (rev 8130)
@@ -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 <FL/x.H>            // for Fl_Region
+#include <FL/Enumerations.H>  // for the color names
+#include <FL/Fl_Window.H>     // for fl_set_spot()
+#include <FL/Fl_Device.H>     // for fl_graphics_driver
 
 // Image class...
 class Fl_Image;

Modified: branches/branch-1.3/FL/mac.H
===================================================================
--- branches/branch-1.3/FL/mac.H        2010-12-28 15:33:36 UTC (rev 8129)
+++ branches/branch-1.3/FL/mac.H        2010-12-28 18:14:59 UTC (rev 8130)
@@ -33,6 +33,7 @@
 #if !defined(Fl_X_H)
 #  error "Never use <FL/mac.H> directly; include <FL/x.H> instead."
 #endif // !Fl_X_H
+#include <FL/Fl_Widget.H>
 
 typedef void* Window;      // this is really a pointer to the subclass 
FLWindow of NSWindow
 typedef void* Fl_Offscreen; // this is really a CGContextRef

_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit

Reply via email to