summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2002-08-19 18:11:24 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2002-08-19 18:11:24 +0000
commit43519f12641f717c6679f038330eb33d7eeaf580 (patch)
treeda2fcce72734fa9b1933ab25953ce50af3dc567f /src
parent614e835fb9ee64b32b0894c9c2f364f3a2aa9b5b (diff)
Add Cygwin check for scandir(); fix from Ken Yarnall.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2595 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
-rw-r--r--src/filename_list.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/filename_list.cxx b/src/filename_list.cxx
index 02e602110..ce2c2ec4c 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.4 2002/05/25 13:38:25 easysw Exp $"
+// "$Id: filename_list.cxx,v 1.10.2.11.2.5 2002/08/19 18:11:24 easysw Exp $"
//
// Filename list routines for the Fast Light Tool Kit (FLTK).
//
@@ -49,8 +49,8 @@ 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)
- // HP-UX defines the comparison function like this:
+#if 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__)
// OSF, DU 4.0x
@@ -59,17 +59,17 @@ int fl_filename_list(const char *d, dirent ***list,
// AIX is almost standard...
return scandir(d, list, 0, (int(*)(void*, void*))sort);
#elif HAVE_SCANDIR && !defined(__sgi)
- // The vast majority of Unix systems want the sort function to have this
+ // 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:
return scandir(d, list, 0, (int(*)(const void*,const void*))sort);
#else
// This version is when we define our own scandir (WIN32 and perhaps
- // some Unix systems) and apparently on Irix:
+ // some Unix systems) and apparently on IRIX:
return scandir(d, list, 0, sort);
#endif
}
//
-// End of "$Id: filename_list.cxx,v 1.10.2.11.2.4 2002/05/25 13:38:25 easysw Exp $".
+// End of "$Id: filename_list.cxx,v 1.10.2.11.2.5 2002/08/19 18:11:24 easysw Exp $".
//