summaryrefslogtreecommitdiff
path: root/main/php_scandir.h
diff options
context:
space:
mode:
Diffstat (limited to 'main/php_scandir.h')
-rw-r--r--main/php_scandir.h18
1 files changed, 18 insertions, 0 deletions
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 <sys/types.h>
+#include "php_config.h"
+
+#ifdef HAVE_DIRENT_H
+# include <dirent.h>
+#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