summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/clipboard.cxx3
-rw-r--r--examples/table-sort.cxx2
2 files changed, 4 insertions, 1 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 <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
*/
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 <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*/