Skip to content

Commit abda353

Browse files
committed
- MFH: export php_scandir and php_alphasort
1 parent 3572d5f commit abda353

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

main/php_scandir.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,14 @@
5050
#include <string.h>
5151
#endif
5252

53-
int php_alphasort(const struct dirent **a, const struct dirent **b)
53+
PHPAPI int php_alphasort(const struct dirent **a, const struct dirent **b)
5454
{
5555
return strcoll((*a)->d_name,(*b)->d_name);
5656
}
5757
#endif /* HAVE_ALPHASORT */
5858

5959
#ifndef HAVE_SCANDIR
60-
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))
60+
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))
6161
{
6262
DIR *dirp = NULL;
6363
struct dirent **vector = NULL;

main/php_scandir.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,13 @@
4242
#ifdef HAVE_SCANDIR
4343
#define php_scandir scandir
4444
#else
45-
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));
45+
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));
4646
#endif
4747

4848
#ifdef HAVE_ALPHASORT
4949
#define php_alphasort alphasort
5050
#else
51-
int php_alphasort(const struct dirent **a, const struct dirent **b);
51+
PHPAPI int php_alphasort(const struct dirent **a, const struct dirent **b);
5252
#endif
5353

5454
#endif /* PHP_SCANDIR_H */

0 commit comments

Comments
 (0)