From e8b6b0151a681e19ec413db046763a70e5466627 Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Thu, 31 Mar 2016 21:50:34 +0000 Subject: [PATCH] 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 --- examples/clipboard.cxx | 3 +++ examples/shapedwindow.cxx | 3 ++- examples/table-sort.cxx | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/examples/clipboard.cxx b/examples/clipboard.cxx index f72eaabf5..618a92e72 100644 --- a/examples/clipboard.cxx +++ b/examples/clipboard.cxx @@ -25,6 +25,9 @@ #include #include #include +#ifdef WIN32 +#include +#endif // WIN32 /* Displays and follows the content of the clipboard with either image or text data */ diff --git a/examples/shapedwindow.cxx b/examples/shapedwindow.cxx index f614f98da..384a5561c 100644 --- a/examples/shapedwindow.cxx +++ b/examples/shapedwindow.cxx @@ -20,6 +20,7 @@ #include #include #include +#include #include #include #include @@ -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) { diff --git a/examples/table-sort.cxx b/examples/table-sort.cxx index 3a8fcb41a..2cbee1f51 100644 --- a/examples/table-sort.cxx +++ b/examples/table-sort.cxx @@ -31,6 +31,7 @@ #include #include +#include #include #include // STL sort @@ -45,7 +46,6 @@ static const char *G_header[] = { "Date", "Time", "Size", "Filename", "", "", "" # endif #else /*WIN32*/ // UNIX -# include # define DIRCMD "ls -l" static const char *G_header[] = { "Perms", "#L", "Own", "Group", "Size", "Date", "", "", "Filename", 0 }; #endif /*WIN32*/