diff options
| author | Manolo Gouy <Manolo> | 2016-04-07 15:10:30 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2016-04-07 15:10:30 +0000 |
| commit | 23a60edb44d264887a398eef1b6346f8f24737e2 (patch) | |
| tree | ae6920a8b002dd26240f560d61df84888ba3b4a5 /src/numericsort.c | |
| parent | 406fcaf3053b2d8d9c8ea677c59667a7ec43a556 (diff) | |
Rewrite filename_list.cxx under the driver model.
One more platform-dependent type is necessary: struct dirent
Create a new header file, FL/platform_types.h, to define all
types whose definition is platform-dependent.
This file is for C because it is included by scandir_XXX.c
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11550 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/numericsort.c')
| -rw-r--r-- | src/numericsort.c | 25 |
1 files changed, 1 insertions, 24 deletions
diff --git a/src/numericsort.c b/src/numericsort.c index 9c4297347..e3455a8cf 100644 --- a/src/numericsort.c +++ b/src/numericsort.c @@ -16,32 +16,9 @@ * http://www.fltk.org/str.php */ -/* My own scandir sorting function, useful for the film industry where - we have many files with numbers in their names: */ - -#include <config.h> #include <ctype.h> #include <stdlib.h> -#include <sys/types.h> - -#if !defined(WIN32) || defined(__CYGWIN__) -# ifdef HAVE_DIRENT_H -# include <dirent.h> -# else -# define dirent direct -# ifdef HAVE_SYS_NDIR_H -# include <sys/ndir.h> -# endif /* HAVE_SYS_NDIR_H */ -# ifdef HAVE_SYS_DIR_H -# include <sys/dir.h> -# endif /* HAVE_SYS_DIR_H */ -# ifdef HAVE_NDIR_H -# include <ndir.h> -# endif /* HAVE_NDIR_H */ -# endif /* HAVE_DIRENT_H */ -#endif /* !WIN32 || __CYGWIN__ */ - -#include <FL/filename.H> +#include <FL/platform_types.h> /* * 'numericsort()' - Compare two directory entries, possibly with |
