diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2021-03-20 21:39:28 +0100 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2021-03-21 00:42:28 +0100 |
| commit | 41266df7ae51f179f4a80f67a2eba896ba1fd7b2 (patch) | |
| tree | 52103dcc63cd91c58b6f599ca7595b254549b3cb /fluid | |
| parent | bd52db0b952d35ce793153e4a0c0b25f102a4395 (diff) | |
Remove unnecessary system includes from public headers
Add includes of system headers in the implementation files
where necessary.
Diffstat (limited to 'fluid')
| -rw-r--r-- | fluid/ExternalCodeEditor_WIN32.cxx | 5 | ||||
| -rw-r--r-- | fluid/Fl_Type.h | 1 | ||||
| -rw-r--r-- | fluid/Fluid_Image.cxx | 5 |
3 files changed, 7 insertions, 4 deletions
diff --git a/fluid/ExternalCodeEditor_WIN32.cxx b/fluid/ExternalCodeEditor_WIN32.cxx index b05adc638..695578749 100644 --- a/fluid/ExternalCodeEditor_WIN32.cxx +++ b/fluid/ExternalCodeEditor_WIN32.cxx @@ -3,8 +3,6 @@ // // Note: This entire file Windows only. -#include <stdio.h> // snprintf() - #include <FL/Fl.H> // Fl_Timeout_Handler.. #include <FL/fl_ask.H> // fl_alert() #include <FL/fl_utf8.h> // fl_utf8fromwc() @@ -12,6 +10,9 @@ #include "ExternalCodeEditor_WIN32.h" +#include <stdio.h> // snprintf() +#include <stdlib.h> + extern int G_debug; // defined in fluid.cxx // Static local data diff --git a/fluid/Fl_Type.h b/fluid/Fl_Type.h index 7b008f092..a6e030674 100644 --- a/fluid/Fl_Type.h +++ b/fluid/Fl_Type.h @@ -29,6 +29,7 @@ #include "Fluid_Image.h" #include <FL/fl_draw.H> #include <stdarg.h> +#include <stdlib.h> #ifdef _WIN32 #include "ExternalCodeEditor_WIN32.h" diff --git a/fluid/Fluid_Image.cxx b/fluid/Fluid_Image.cxx index 1f41a09fd..ba44175f3 100644 --- a/fluid/Fluid_Image.cxx +++ b/fluid/Fluid_Image.cxx @@ -16,6 +16,9 @@ #include <FL/Fl.H> #include <FL/Fl_Widget.H> +#include <FL/filename.H> +#include <FL/fl_string.h> +#include <FL/fl_utf8.h> // fl_fopen() #include "Fl_Type.h" #include "Fluid_Image.h" #include "../src/flstring.h" @@ -23,8 +26,6 @@ #include <errno.h> #include <stdlib.h> #include <stdarg.h> -#include <FL/filename.H> -#include <FL/fl_string.h> extern void goto_source_dir(); // in fluid.cxx extern void leave_source_dir(); // in fluid.cxx |
