This commit is contained in:
foobar 2003-02-19 18:45:51 +00:00
parent 53d70b2c14
commit 0458bb5e2b
2 changed files with 4 additions and 3 deletions

View File

@ -27,8 +27,6 @@
#include "php_scandir.h"
#ifndef HAVE_SCANDIR
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
@ -37,6 +35,8 @@
#include <dirent.h>
#endif
#ifndef HAVE_SCANDIR
#ifdef PHP_WIN32
#include "win32/readdir.h"
#endif

View File

@ -31,10 +31,11 @@
#include "php_config.h"
#endif
#ifdef HAVE_SCANDIR
#ifdef HAVE_DIRENT_H
#include <dirent.h>
#endif
#ifdef HAVE_SCANDIR
#define php_scandir scandir
#else
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));