summaryrefslogtreecommitdiff
path: root/main/php_scandir.h
blob: fc3b191dfbb6b593b9ea524eb721c75a5852f4d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include <sys/types.h>

#ifdef PHP_WIN32
#include "config.w32.h"
#include "win32/readdir.h"
#else
#include "php_config.h"
#endif

#ifdef HAVE_DIRENT_H
# include <dirent.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