Use <config.h> when appropriate.

This commit is contained in:
ManoloFLTK 2021-02-16 11:08:30 +01:00
parent 06793c50fb
commit d93fc2bfa6
35 changed files with 32 additions and 43 deletions

View File

@ -14,8 +14,8 @@
// https://www.fltk.org/bugs.php // https://www.fltk.org/bugs.php
// //
#include <config.h>
#include <FL/Fl.H> #include <FL/Fl.H>
#include "config_lib.h"
#include <FL/Fl_Device.H> #include <FL/Fl_Device.H>
#include <FL/Fl_Graphics_Driver.H> #include <FL/Fl_Graphics_Driver.H>

View File

@ -14,7 +14,7 @@
// https://www.fltk.org/bugs.php // https://www.fltk.org/bugs.php
// //
#include "config_lib.h" #include <config.h>
#if HAVE_GL #if HAVE_GL
# include <FL/Fl.H> # include <FL/Fl.H>

View File

@ -14,7 +14,7 @@
// https://www.fltk.org/bugs.php // https://www.fltk.org/bugs.php
// //
#include "config_lib.h" #include <config.h>
#include <FL/Fl_Gl_Window.H> #include <FL/Fl_Gl_Window.H>
#include <FL/Fl_RGB_Image.H> #include <FL/Fl_RGB_Image.H>
#include "drivers/OpenGL/Fl_OpenGL_Display_Device.H" #include "drivers/OpenGL/Fl_OpenGL_Display_Device.H"

View File

@ -14,7 +14,7 @@
// https://www.fltk.org/bugs.php // https://www.fltk.org/bugs.php
// //
#include "config_lib.h" #include <config.h>
#if HAVE_GL #if HAVE_GL
#include <FL/Fl.H> #include <FL/Fl.H>

View File

@ -20,8 +20,8 @@
\{ \{
*/ */
#include <config.h>
#include <FL/Fl.H> #include <FL/Fl.H>
#include "config_lib.h"
#include <FL/Fl_Graphics_Driver.H> #include <FL/Fl_Graphics_Driver.H>
#include "Fl_Screen_Driver.H" #include "Fl_Screen_Driver.H"
#include <FL/Fl_Image.H> #include <FL/Fl_Image.H>

View File

@ -14,7 +14,7 @@
// https://www.fltk.org/bugs.php // https://www.fltk.org/bugs.php
// //
#include "config_lib.h" #include <config.h>
#include <FL/Fl.H> #include <FL/Fl.H>
#include <FL/fl_draw.H> #include <FL/fl_draw.H>
#include <FL/Fl_Widget.H> #include <FL/Fl_Widget.H>

View File

@ -20,7 +20,7 @@ extern "C" {
#include <pthread.h> #include <pthread.h>
} }
#include "config_lib.h" #include <config.h>
#include <FL/Fl.H> #include <FL/Fl.H>
#include <FL/platform.H> #include <FL/platform.H>
#include "Fl_Window_Driver.H" #include "Fl_Window_Driver.H"

View File

@ -49,7 +49,7 @@ void fl_free_fonts(void);
void fl_release_dc(HWND, HDC); void fl_release_dc(HWND, HDC);
void fl_cleanup_dc_list(void); void fl_cleanup_dc_list(void);
#include "config_lib.h" #include <config.h>
#include <FL/Fl.H> #include <FL/Fl.H>
#include <FL/platform.H> #include <FL/platform.H>
#include "Fl_Window_Driver.H" #include "Fl_Window_Driver.H"

View File

@ -15,7 +15,7 @@
// //
#include "../../config_lib.h" #include <config.h>
#include "Fl_Cocoa_Screen_Driver.H" #include "Fl_Cocoa_Screen_Driver.H"
#include "Fl_Cocoa_Window_Driver.H" #include "Fl_Cocoa_Window_Driver.H"
#include "../Quartz/Fl_Font.H" #include "../Quartz/Fl_Font.H"

View File

@ -15,7 +15,7 @@
// //
#include "../../config_lib.h" #include <config.h>
#include "Fl_Cocoa_Window_Driver.H" #include "Fl_Cocoa_Window_Driver.H"
#include "../../Fl_Screen_Driver.H" #include "../../Fl_Screen_Driver.H"
#include "../Quartz/Fl_Quartz_Graphics_Driver.H" #include "../Quartz/Fl_Quartz_Graphics_Driver.H"

View File

@ -14,8 +14,7 @@
// https://www.fltk.org/bugs.php // https://www.fltk.org/bugs.php
// //
#include "../../config_lib.h" #include <config.h>
#include <FL/Fl_Copy_Surface.H> #include <FL/Fl_Copy_Surface.H>
#include <FL/platform.H> #include <FL/platform.H>
#include "Fl_GDI_Graphics_Driver.H" #include "Fl_GDI_Graphics_Driver.H"

View File

@ -15,7 +15,7 @@
// //
#include "../../config_lib.h" #include <config.h>
#include "Fl_GDI_Graphics_Driver.H" #include "Fl_GDI_Graphics_Driver.H"
#include <FL/Fl.H> #include <FL/Fl.H>
#include <FL/platform.H> #include <FL/platform.H>

View File

@ -21,7 +21,6 @@
*/ */
#include <config.h> #include <config.h>
#include "../../config_lib.h"
#include <FL/Fl.H> #include <FL/Fl.H>
#include <FL/Fl_Widget.H> #include <FL/Fl_Widget.H>
#include <FL/fl_draw.H> #include <FL/fl_draw.H>

View File

@ -14,7 +14,7 @@
// https://www.fltk.org/bugs.php // https://www.fltk.org/bugs.php
// //
#include "../../config_lib.h" #include <config.h>
#include <FL/Fl_Gl_Window.H> #include <FL/Fl_Gl_Window.H>
#include "../../Fl_Gl_Window_Driver.H" #include "../../Fl_Gl_Window_Driver.H"
#include <FL/Fl_Image.H> #include <FL/Fl_Image.H>

View File

@ -20,7 +20,6 @@
*/ */
#include <config.h> #include <config.h>
#include "../../config_lib.h"
#include "Fl_OpenGL_Graphics_Driver.H" #include "Fl_OpenGL_Graphics_Driver.H"
#include <FL/gl.h> #include <FL/gl.h>
#include <FL/Fl_Gl_Window.H> #include <FL/Fl_Gl_Window.H>

View File

@ -19,8 +19,7 @@
\brief Color handling \brief Color handling
*/ */
#include "../../config_lib.h" #include <config.h>
// #include <config.h>
#include "Fl_OpenGL_Graphics_Driver.H" #include "Fl_OpenGL_Graphics_Driver.H"
#include <FL/gl.h> #include <FL/gl.h>
#include <FL/Fl_Gl_Window.H> #include <FL/Fl_Gl_Window.H>

View File

@ -26,7 +26,6 @@
#include <config.h> #include <config.h>
#include "../../config_lib.h"
#include "Fl_OpenGL_Graphics_Driver.H" #include "Fl_OpenGL_Graphics_Driver.H"
#include <FL/gl.h> #include <FL/gl.h>
#include <FL/Fl_Gl_Window.H> #include <FL/Fl_Gl_Window.H>

View File

@ -20,7 +20,6 @@
*/ */
#include <config.h> #include <config.h>
#include "../../config_lib.h"
#include "Fl_OpenGL_Graphics_Driver.H" #include "Fl_OpenGL_Graphics_Driver.H"
#include <FL/gl.h> #include <FL/gl.h>
#include <FL/Fl_Gl_Window.H> #include <FL/Fl_Gl_Window.H>

View File

@ -21,7 +21,6 @@
*/ */
#include <config.h> #include <config.h>
#include "../../config_lib.h"
#include "Fl_OpenGL_Graphics_Driver.H" #include "Fl_OpenGL_Graphics_Driver.H"
#include <FL/gl.h> #include <FL/gl.h>
#include <FL/Fl_Gl_Window.H> #include <FL/Fl_Gl_Window.H>

View File

@ -14,9 +14,9 @@
// https://www.fltk.org/bugs.php // https://www.fltk.org/bugs.php
// //
#include "../../config_lib.h" #include <config.h>
#if defined(FL_CFG_PRN_PS) && !defined(FL_NO_PRINT_SUPPORT) #if !defined(FL_NO_PRINT_SUPPORT)
#include <FL/Fl_PostScript.H> #include <FL/Fl_PostScript.H>
#include "../PostScript/Fl_PostScript_Graphics_Driver.H" #include "../PostScript/Fl_PostScript_Graphics_Driver.H"
@ -331,4 +331,4 @@ int Fl_Posix_Printer_Driver::begin_job(int pages, int *firstpage, int *lastpage,
return ps->start_postscript(pages, format, layout); // start printing return ps->start_postscript(pages, format, layout); // start printing
} }
#endif // defined(FL_CFG_PRN_PS) && !defined(FL_NO_PRINT_SUPPORT) #endif // !defined(FL_NO_PRINT_SUPPORT)

View File

@ -23,7 +23,7 @@
#ifndef FL_POSIX_SYSTEM_DRIVER_H #ifndef FL_POSIX_SYSTEM_DRIVER_H
#define FL_POSIX_SYSTEM_DRIVER_H #define FL_POSIX_SYSTEM_DRIVER_H
#include "../../config_lib.h" #include <config.h>
#include "../../Fl_System_Driver.H" #include "../../Fl_System_Driver.H"
#include <stdlib.h> #include <stdlib.h>
#include <unistd.h> #include <unistd.h>

View File

@ -21,7 +21,7 @@
#ifndef FL_POSTSCRIPT_GRAPHICS_DRIVER_H #ifndef FL_POSTSCRIPT_GRAPHICS_DRIVER_H
#define FL_POSTSCRIPT_GRAPHICS_DRIVER_H #define FL_POSTSCRIPT_GRAPHICS_DRIVER_H
#include "../../config_lib.h" #include <config.h>
#include <FL/Fl_PostScript.H> #include <FL/Fl_PostScript.H>
#ifndef USE_PANGO #ifndef USE_PANGO

View File

@ -14,7 +14,7 @@
// https://www.fltk.org/bugs.php // https://www.fltk.org/bugs.php
// //
#include "../../config_lib.h" #include <config.h>
#include "Fl_Quartz_Graphics_Driver.H" #include "Fl_Quartz_Graphics_Driver.H"
#include "../Darwin/Fl_Darwin_System_Driver.H" #include "../Darwin/Fl_Darwin_System_Driver.H"
#include <FL/platform.H> #include <FL/platform.H>

View File

@ -14,11 +14,8 @@
// https://www.fltk.org/bugs.php // https://www.fltk.org/bugs.php
// //
#include "../../config_lib.h"
#include "Fl_Quartz_Graphics_Driver.H"
#include <config.h> #include <config.h>
#include "Fl_Quartz_Graphics_Driver.H"
#include <FL/Fl.H> #include <FL/Fl.H>
#include <FL/fl_draw.H> #include <FL/fl_draw.H>
#include <FL/platform.H> #include <FL/platform.H>

View File

@ -15,7 +15,7 @@
// //
#include "../../config_lib.h" #include <config.h>
#include "Fl_WinAPI_Screen_Driver.H" #include "Fl_WinAPI_Screen_Driver.H"
#include "../GDI/Fl_Font.H" #include "../GDI/Fl_Font.H"
#include <FL/Fl.H> #include <FL/Fl.H>

View File

@ -14,7 +14,7 @@
// https://www.fltk.org/bugs.php // https://www.fltk.org/bugs.php
// //
#include "../../config_lib.h" #include <config.h>
#include "Fl_WinAPI_System_Driver.H" #include "Fl_WinAPI_System_Driver.H"
#include <FL/Fl.H> #include <FL/Fl.H>
#include <FL/fl_utf8.h> #include <FL/fl_utf8.h>

View File

@ -15,7 +15,7 @@
// //
#include "../../config_lib.h" #include <config.h>
#include <FL/fl_draw.H> #include <FL/fl_draw.H>
#include <FL/Fl.H> #include <FL/Fl.H>
#include <FL/Fl_Window.H> #include <FL/Fl_Window.H>

View File

@ -15,7 +15,7 @@
// //
#include "../../config_lib.h" #include <config.h>
#include "Fl_X11_Screen_Driver.H" #include "Fl_X11_Screen_Driver.H"
#include "../Xlib/Fl_Font.H" #include "../Xlib/Fl_Font.H"
#include "Fl_X11_Window_Driver.H" #include "Fl_X11_Window_Driver.H"

View File

@ -18,7 +18,7 @@
#ifndef FL_X11_SYSTEM_DRIVER_H #ifndef FL_X11_SYSTEM_DRIVER_H
#define FL_X11_SYSTEM_DRIVER_H #define FL_X11_SYSTEM_DRIVER_H
#include "../../config_lib.h" #include <config.h>
#include "../Posix/Fl_Posix_System_Driver.H" #include "../Posix/Fl_Posix_System_Driver.H"
class Fl_X11_System_Driver : public Fl_Posix_System_Driver { class Fl_X11_System_Driver : public Fl_Posix_System_Driver {

View File

@ -15,7 +15,7 @@
// //
#include "../../config_lib.h" #include <config.h>
#include "Fl_X11_Window_Driver.H" #include "Fl_X11_Window_Driver.H"
#include "Fl_X11_Screen_Driver.H" #include "Fl_X11_Screen_Driver.H"
#include "../Xlib/Fl_Xlib_Graphics_Driver.H" #include "../Xlib/Fl_Xlib_Graphics_Driver.H"

View File

@ -14,8 +14,7 @@
// https://www.fltk.org/bugs.php // https://www.fltk.org/bugs.php
// //
#include "../../config_lib.h" #include <config.h>
#include <FL/Fl_Copy_Surface.H> #include <FL/Fl_Copy_Surface.H>
#include <FL/Fl.H> #include <FL/Fl.H>
#include <FL/platform.H> #include <FL/platform.H>

View File

@ -15,7 +15,7 @@
// //
#include "../../config_lib.h" #include <config.h>
#include "Fl_Xlib_Graphics_Driver.H" #include "Fl_Xlib_Graphics_Driver.H"
#include "Fl_Font.H" #include "Fl_Font.H"
#include <FL/fl_draw.H> #include <FL/fl_draw.H>

View File

@ -19,7 +19,7 @@
\brief X11 Xlib specific line and polygon drawing with integer coordinates. \brief X11 Xlib specific line and polygon drawing with integer coordinates.
*/ */
#include "../../config_lib.h" #include <config.h>
#include <FL/Fl.H> #include <FL/Fl.H>
#include <FL/Fl_Widget.H> #include <FL/Fl_Widget.H>
#include <FL/fl_draw.H> #include <FL/fl_draw.H>

View File

@ -29,7 +29,7 @@
get_list(), gl_bitmap_font() and draw_string_legacy() for the platform's Fl_XXX_Gl_Window_Driver. get_list(), gl_bitmap_font() and draw_string_legacy() for the platform's Fl_XXX_Gl_Window_Driver.
*/ */
#include "config_lib.h" #include <config.h>
#if HAVE_GL || defined(FL_DOXYGEN) #if HAVE_GL || defined(FL_DOXYGEN)

View File

@ -26,7 +26,7 @@
// be erased when the buffers are swapped (when double buffer hardware // be erased when the buffers are swapped (when double buffer hardware
// is being used) // is being used)
#include "config_lib.h" #include <config.h>
#if HAVE_GL #if HAVE_GL
#include <FL/Fl.H> #include <FL/Fl.H>