Skip to content

Commit

Permalink
Remove a bunch of unnecessary #include <config.h> directives
Browse files Browse the repository at this point in the history
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11443 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
  • Loading branch information
Manolo Gouy authored and Manolo Gouy committed Mar 27, 2016
1 parent 2fd4dde commit c456dd4
Show file tree
Hide file tree
Showing 10 changed files with 4 additions and 21 deletions.
1 change: 0 additions & 1 deletion src/Fl_BMP_Image.cxx
Expand Up @@ -28,7 +28,6 @@
#include <FL/Fl_BMP_Image.H>
#include <FL/fl_utf8.h>
#include <FL/Fl.H>
#include <config.h>
#include <stdio.h>
#include <stdlib.h>

Expand Down
1 change: 0 additions & 1 deletion src/Fl_Window_Driver.cxx
Expand Up @@ -18,7 +18,6 @@
//


#include <config.h>
#include <FL/Fl_Window_Driver.H>
#include <FL/Fl_Overlay_Window.H>
#include <FL/fl_draw.H>
Expand Down
1 change: 0 additions & 1 deletion src/Fl_get_key_mac.cxx
Expand Up @@ -20,7 +20,6 @@
// which are actually X keysyms. So this has to translate to macOS
// symbols.

#include <config.h>
#include <FL/Fl.H>
#include <FL/x.H>

Expand Down
1 change: 0 additions & 1 deletion src/Fl_grab.cxx
Expand Up @@ -16,7 +16,6 @@
// http://www.fltk.org/str.php
//

#include <config.h>
#include <FL/Fl.H>
#include <FL/Fl_Screen_Driver.H>

Expand Down
1 change: 0 additions & 1 deletion src/Fl_visual.cxx
Expand Up @@ -18,7 +18,6 @@

// Set the default visual according to passed switches:

#include <config.h>
#include <FL/Fl.H>
#include <FL/Fl_Screen_Driver.H>

Expand Down
1 change: 0 additions & 1 deletion src/drivers/GDI/Fl_GDI_Graphics_Driver.cxx
Expand Up @@ -17,7 +17,6 @@
//


#include <config.h>
#include "../../config_lib.h"
#include "Fl_GDI_Graphics_Driver.H"
#include <FL/Fl.H>
Expand Down
2 changes: 0 additions & 2 deletions src/fl_color.cxx
Expand Up @@ -26,8 +26,6 @@
#include <FL/Fl.H>
#include <FL/Fl_Device.H>
#include <FL/Fl.H>
#include <config.h>
#include "config_lib.h"

// fl_cmap needs to be defined globally (here) and is used in the device
// specific graphics drivers
Expand Down
4 changes: 1 addition & 3 deletions src/fl_read_image_mac.cxx
@@ -1,7 +1,7 @@
//
// "$Id$"
//
// WIN32 image reading routines for the Fast Light Tool Kit (FLTK).
// Mac OS image reading routines for the Fast Light Tool Kit (FLTK).
//
// Copyright 1998-2016 by Bill Spitzak and others.
//
Expand All @@ -16,8 +16,6 @@
// http://www.fltk.org/str.php
//

#include <config.h>

//
// 'fl_read_image()' - Read an image from the current window or off-screen buffer.
//
Expand Down
9 changes: 2 additions & 7 deletions src/fl_rect.cxx
Expand Up @@ -26,13 +26,8 @@
// Also all fl_clip routines, since they are always linked in so
// that minimal update works.

#include <config.h>
#include "config_lib.h"
#include <FL/Fl.H>
#include <FL/x.H>
#include <FL/Fl_Widget.H>
#include <FL/Fl_Printer.H>
#include <FL/fl_draw.H>
#include <FL/Fl_Graphics_Driver.H>

// -----------------------------------------------------------------------------
// all driver code is now in drivers/XXX/Fl_XXX_Graphics_Driver_xyz.cxx
Expand All @@ -53,7 +48,7 @@ void Fl_Graphics_Driver::clip_region(Fl_Region r) {
Fl_Region oldr = rstack[rstackptr];
if (oldr) XDestroyRegion(oldr);
rstack[rstackptr] = r;
fl_restore_clip();
restore_clip();
}


Expand Down
4 changes: 1 addition & 3 deletions src/fl_vertex.cxx
Expand Up @@ -32,9 +32,7 @@
// all driver code is now in drivers/XXX/Fl_XXX_Graphics_Driver_xyz.cxx
// -----------------------------------------------------------------------------

#include <config.h>
#include "config_lib.h"
#include <FL/fl_draw.H>
#include <FL/Fl_Graphics_Driver.H>
#include <FL/Fl.H>
#include <FL/math.h>
#include <stdlib.h>
Expand Down

0 comments on commit c456dd4

Please sign in to comment.