From 0458bb5e2b31e571b83e6aa674073c28fb8c4fbf Mon Sep 17 00:00:00 2001 From: foobar Date: Wed, 19 Feb 2003 18:45:51 +0000 Subject: [PATCH] MFB --- main/php_scandir.c | 4 ++-- main/php_scandir.h | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/main/php_scandir.c b/main/php_scandir.c index 15d4febf4a..139e1c27cb 100644 --- a/main/php_scandir.c +++ b/main/php_scandir.c @@ -27,8 +27,6 @@ #include "php_scandir.h" -#ifndef HAVE_SCANDIR - #ifdef HAVE_SYS_TYPES_H #include #endif @@ -37,6 +35,8 @@ #include #endif +#ifndef HAVE_SCANDIR + #ifdef PHP_WIN32 #include "win32/readdir.h" #endif diff --git a/main/php_scandir.h b/main/php_scandir.h index 4a8b57ed3f..961188e7ad 100644 --- a/main/php_scandir.h +++ b/main/php_scandir.h @@ -31,10 +31,11 @@ #include "php_config.h" #endif -#ifdef HAVE_SCANDIR #ifdef HAVE_DIRENT_H #include #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)); -- 2.40.0