summaryrefslogtreecommitdiff
path: root/src/filename_list.cxx
diff options
context:
space:
mode:
authorBill Spitzak <spitzak@gmail.com>2000-03-17 09:38:20 +0000
committerBill Spitzak <spitzak@gmail.com>2000-03-17 09:38:20 +0000
commitca15addad29e97d06a477895877e72b301a0529c (patch)
tree766ec3a16626a5f5d600385ad356979940dc7b27 /src/filename_list.cxx
parent22418bb1e90b7c1b1d98ef56b03ae836fa63c46c (diff)
Fixed up the colors the browser draws when it is deactivated, it does not
change the background color, this fixes Jeff Meininger's demo. Fl_Input allows ^I, ^J, ^L, and ^M to be typed as control characters and inserted. If you type ^H or ^? they act like backspace and delete. Clicking on an input field no longer selects the whole thing, it inserts the cursor. My tests of Win32 to see what they did were wrong, this is a better simulation and more user friendly, too. Fixed divide-by-zer in the slider code? Better osf code for filename_list from Alexander Mai git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1042 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/filename_list.cxx')
-rw-r--r--src/filename_list.cxx9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/filename_list.cxx b/src/filename_list.cxx
index d01e32e09..d7d661077 100644
--- a/src/filename_list.cxx
+++ b/src/filename_list.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: filename_list.cxx,v 1.10.2.5 2000/03/05 06:51:06 bill Exp $"
+// "$Id: filename_list.cxx,v 1.10.2.6 2000/03/17 09:38:20 bill Exp $"
//
// Filename list routines for the Fast Light Tool Kit (FLTK).
//
@@ -43,7 +43,10 @@ int filename_list(const char *d, dirent ***list) {
#if defined(__hpux)
// HP-UX defines the comparison function like this:
return scandir(d, list, 0, (int(*)(const dirent **, const dirent **))numericsort);
-#elif HAVE_SCANDIR && !defined(__sgi) && !defined(OSF1)
+#elif defined(__osf__)
+ // OSF, DU 4.0x
+ return scandir(d, list, 0, (int(*)(dirent **, dirent **))numericsort);
+#elif HAVE_SCANDIR && !defined(__sgi)
// The vast majority of Unix systems want the sort function to have this
// prototype, most likely so that it can be passed to qsort without any
// changes:
@@ -56,5 +59,5 @@ int filename_list(const char *d, dirent ***list) {
}
//
-// End of "$Id: filename_list.cxx,v 1.10.2.5 2000/03/05 06:51:06 bill Exp $".
+// End of "$Id: filename_list.cxx,v 1.10.2.6 2000/03/17 09:38:20 bill Exp $".
//