summaryrefslogtreecommitdiff
path: root/test/file_chooser.cxx
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2021-03-20 21:39:28 +0100
committerAlbrecht Schlosser <albrechts.fltk@online.de>2021-03-21 00:42:28 +0100
commit41266df7ae51f179f4a80f67a2eba896ba1fd7b2 (patch)
tree52103dcc63cd91c58b6f599ca7595b254549b3cb /test/file_chooser.cxx
parentbd52db0b952d35ce793153e4a0c0b25f102a4395 (diff)
Remove unnecessary system includes from public headers
Add includes of system headers in the implementation files where necessary.
Diffstat (limited to 'test/file_chooser.cxx')
-rw-r--r--test/file_chooser.cxx10
1 files changed, 6 insertions, 4 deletions
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 <stdio.h>
#include <FL/Fl_File_Chooser.H>
#include <FL/Fl_File_Icon.H>
#include <FL/Fl_Shared_Image.H>
@@ -38,7 +37,10 @@
#include <FL/Fl_Light_Button.H>
#include <FL/Fl_Double_Window.H>
#include <FL/Fl_Simple_Terminal.H>
+
+#include <stdio.h>
#include <string.h>
+#include <stdlib.h> // exit()
#include <locale.h> // 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);
}