mirror of
https://github.com/php/php-src.git
synced 2024-11-24 18:34:21 +08:00
MFB
This commit is contained in:
parent
53d70b2c14
commit
0458bb5e2b
@ -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
|
||||
|
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user