summaryrefslogtreecommitdiff
path: root/src/filename_list.cxx
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2004-11-20 03:44:18 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2004-11-20 03:44:18 +0000
commitfc8d065cd73f6a9a5477ea5106da6b26c5cf9a29 (patch)
tree603bb2ac5525a281dc539eb1682a298e6a68fdf3 /src/filename_list.cxx
parent23bb0590651da3f342cddcd3c87aee38a1d067cc (diff)
The configure script did not support --disable-localfoo to
completely disable image file support (STR #582) The Visual C++ 6.0 project files still listed the old JPEG, PNG, and ZLIB library names (STR #577) Fixed the scandir() conditional code for HP-UX 11i (STR #585) Fl_Text_Display didn't support CTRL/CMD-A/C (STR #601) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3898 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/filename_list.cxx')
-rw-r--r--src/filename_list.cxx10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/filename_list.cxx b/src/filename_list.cxx
index baced1b66..396663ec4 100644
--- a/src/filename_list.cxx
+++ b/src/filename_list.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: filename_list.cxx,v 1.10.2.11.2.7 2004/04/11 04:38:59 easysw Exp $"
+// "$Id: filename_list.cxx,v 1.10.2.11.2.8 2004/11/20 03:44:18 easysw Exp $"
//
// Filename list routines for the Fast Light Tool Kit (FLTK).
//
@@ -49,7 +49,9 @@ int fl_casealphasort(struct dirent **a, struct dirent **b) {
int fl_filename_list(const char *d, dirent ***list,
Fl_File_Sort_F *sort) {
-#if defined(__hpux) || defined(__CYGWIN__)
+#ifndef HAVE_SCANDIR
+ return scandir(d, list, 0, sort);
+#elif defined(__hpux) || defined(__CYGWIN__)
// HP-UX, Cygwin define the comparison function like this:
return scandir(d, list, 0, (int(*)(const dirent **, const dirent **))sort);
#elif defined(__osf__)
@@ -58,7 +60,7 @@ int fl_filename_list(const char *d, dirent ***list,
#elif defined(_AIX)
// AIX is almost standard...
return scandir(d, list, 0, (int(*)(void*, void*))sort);
-#elif HAVE_SCANDIR && !defined(__sgi)
+#elif !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:
@@ -71,5 +73,5 @@ int fl_filename_list(const char *d, dirent ***list,
}
//
-// End of "$Id: filename_list.cxx,v 1.10.2.11.2.7 2004/04/11 04:38:59 easysw Exp $".
+// End of "$Id: filename_list.cxx,v 1.10.2.11.2.8 2004/11/20 03:44:18 easysw Exp $".
//