From 41266df7ae51f179f4a80f67a2eba896ba1fd7b2 Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Sat, 20 Mar 2021 21:39:28 +0100 Subject: Remove unnecessary system includes from public headers Add includes of system headers in the implementation files where necessary. --- test/file_chooser.cxx | 10 ++++++---- test/table.cxx | 10 ++++------ test/unittests.cxx | 7 ++++--- 3 files changed, 14 insertions(+), 13 deletions(-) (limited to 'test') diff --git a/test/file_chooser.cxx b/test/file_chooser.cxx index abd5a081e..b705f052e 100644 --- a/test/file_chooser.cxx +++ b/test/file_chooser.cxx @@ -2,7 +2,7 @@ // File chooser test program. // // Copyright 1999-2010 by Michael Sweet. -// Copyright 2011-2019 by Bill Spitzak and others. +// Copyright 2011-2021 by Bill Spitzak and others. // // This library is free software. Distribution and use rights are outlined in // the file "COPYING" which should have been included with this file. If this @@ -30,7 +30,6 @@ // Include necessary headers... // -#include #include #include #include @@ -38,7 +37,10 @@ #include #include #include + +#include #include +#include // exit() #include // setlocale().. #define TERMINAL_HEIGHT 120 @@ -300,7 +302,7 @@ pdf_check(const char *name, // I - Name of file "-sstdout=\"%%stderr\" -sOUTPUTFILE=\'%s\' " "-dFirstPage=1 -dLastPage=1 \'%s\' 2>/dev/null", preview, name); - if (system(command)) return 0; + if (fl_system(command)) return 0; return new Fl_PNM_Image(preview); } @@ -363,7 +365,7 @@ ps_check(const char *name, // I - Name of file "-sstdout=\"%%stderr\" -sOUTPUTFILE=\'%s\' \'%s\' 2>/dev/null", preview, outname); - if (system(command)) return 0; + if (fl_system(command)) return 0; return new Fl_PNM_Image(preview); } diff --git a/test/table.cxx b/test/table.cxx index 2e5f0f639..1a540ea4f 100644 --- a/test/table.cxx +++ b/test/table.cxx @@ -2,12 +2,6 @@ // exercisetablerow -- Exercise all aspects of the Fl_Table_Row widget // -#include -#include -#ifdef _WIN32 -#include // atoi -#endif /* _WIN32 */ - #include #include #include @@ -18,6 +12,10 @@ #include #include +#include +#include +#include // atoi + #define TERMINAL_HEIGHT 120 // Globals diff --git a/test/unittests.cxx b/test/unittests.cxx index ca04aac62..22e6220a2 100644 --- a/test/unittests.cxx +++ b/test/unittests.cxx @@ -1,7 +1,7 @@ // // Unit tests for the Fast Light Tool Kit (FLTK). // -// Copyright 1998-2017 by Bill Spitzak and others. +// Copyright 1998-2021 by Bill Spitzak and others. // // This library is free software. Distribution and use rights are outlined in // the file "COPYING" which should have been included with this file. If this @@ -27,8 +27,9 @@ #include #include #include -#include // fl_text_extents() -#include // fl_strdup() +#include // fl_text_extents() +#include // fl_strdup() +#include // malloc, free // WINDOW/WIDGET SIZES #define MAINWIN_W 700 // main window w() -- cgit v1.2.3