Update example programs to match those of branch-1.3.porting.
This #includes some headers that are #included in FLTK headers. Although this is strictly not necessary, it removes assumptions that these header files are included by FLTK headers. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11493 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
11322ede59
commit
e8b6b0151a
@ -25,6 +25,9 @@
|
||||
#include <FL/Fl_Button.H>
|
||||
#include <FL/Fl.H>
|
||||
#include <FL/fl_draw.H>
|
||||
#ifdef WIN32
|
||||
#include <windows.h>
|
||||
#endif // WIN32
|
||||
|
||||
/* Displays and follows the content of the clipboard with either image or text data
|
||||
*/
|
||||
|
@ -20,6 +20,7 @@
|
||||
#include <FL/Fl_Button.H>
|
||||
#include <FL/Fl_Box.H>
|
||||
#include <FL/Fl.H>
|
||||
#include <FL/fl_draw.H>
|
||||
#include <FL/Fl_Double_Window.H>
|
||||
#include <FL/Fl_Image.H>
|
||||
#include <FL/Fl_Tiled_Image.H>
|
||||
@ -86,7 +87,7 @@ Fl_RGB_Image* prepare_shape(int w)
|
||||
Fl_RGB_Image* img = surf->image();
|
||||
delete surf;
|
||||
current->set_current();
|
||||
return img; // return depth-3 white image on black background
|
||||
return img; // return white image on black background
|
||||
}
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
|
@ -31,6 +31,7 @@
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <ctype.h>
|
||||
#include <vector>
|
||||
#include <algorithm> // STL sort
|
||||
|
||||
@ -45,7 +46,6 @@ static const char *G_header[] = { "Date", "Time", "Size", "Filename", "", "", ""
|
||||
# endif
|
||||
#else /*WIN32*/
|
||||
// UNIX
|
||||
# include <ctype.h>
|
||||
# define DIRCMD "ls -l"
|
||||
static const char *G_header[] = { "Perms", "#L", "Own", "Group", "Size", "Date", "", "", "Filename", 0 };
|
||||
#endif /*WIN32*/
|
||||
|
Loading…
Reference in New Issue
Block a user