Skip to content

Commit 0458bb5

Browse files
author
foobar
committed
MFB
1 parent 53d70b2 commit 0458bb5

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

main/php_scandir.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@
2727

2828
#include "php_scandir.h"
2929

30-
#ifndef HAVE_SCANDIR
31-
3230
#ifdef HAVE_SYS_TYPES_H
3331
#include <sys/types.h>
3432
#endif
@@ -37,6 +35,8 @@
3735
#include <dirent.h>
3836
#endif
3937

38+
#ifndef HAVE_SCANDIR
39+
4040
#ifdef PHP_WIN32
4141
#include "win32/readdir.h"
4242
#endif

main/php_scandir.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,11 @@
3131
#include "php_config.h"
3232
#endif
3333

34-
#ifdef HAVE_SCANDIR
3534
#ifdef HAVE_DIRENT_H
3635
#include <dirent.h>
3736
#endif
37+
38+
#ifdef HAVE_SCANDIR
3839
#define php_scandir scandir
3940
#else
4041
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));

0 commit comments

Comments
 (0)