12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- #ifndef PHP_SCANDIR_H
- #define PHP_SCANDIR_H
- #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
- #ifdef HAVE_SCANDIR
- #define php_scandir scandir
- #else
- PHPAPI int php_scandir(const char *dirname, struct dirent **namelist[], int (*selector) (const struct dirent *entry), int (*compare) (const struct dirent **a, const struct dirent **b));
- #endif
- #ifdef HAVE_ALPHASORT
- #define php_alphasort alphasort
- #else
- PHPAPI int php_alphasort(const struct dirent **a, const struct dirent **b);
- #endif
- #endif
|