From d59d500af7204cf419d91553dccfc2ff0069ca65 Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Mon, 27 Jan 2003 20:39:31 +0000 Subject: Moved the scandir code into it's own files so that it can be used by other OSes where libc does not have a native scandir() implementation. --- main/php_scandir.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 main/php_scandir.h (limited to 'main/php_scandir.h') diff --git a/main/php_scandir.h b/main/php_scandir.h new file mode 100644 index 0000000000..a658ad02a9 --- /dev/null +++ b/main/php_scandir.h @@ -0,0 +1,18 @@ +#include +#include "php_config.h" + +#ifdef HAVE_DIRENT_H +# include +#endif + +#ifdef PHP_WIN32 +#include "win32/readdir.h" +#endif + +#ifndef HAVE_ALPHASORT +int alphasort(const struct dirent **a, const struct dirent **b); +#endif + +#ifndef HAVE_SCANDIR +int scandir(const char *dirname, struct dirent **namelist[], int (*selector) (const struct dirent *entry), int (*compare) (const struct dirent **a, const struct dirent **b)); +#endif -- cgit v1.2.1