From ef68d9fc7288e02c78fed29088a5e3d20c5d4494 Mon Sep 17 00:00:00 2001 From: Pierre Joye Date: Tue, 2 Dec 2008 10:15:08 +0000 Subject: - export php_scandir and php_alphasort correctly (used by APC for example) --- main/php_scandir.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'main/php_scandir.c') diff --git a/main/php_scandir.c b/main/php_scandir.c index 320d108224..8dd218d156 100644 --- a/main/php_scandir.c +++ b/main/php_scandir.c @@ -50,14 +50,14 @@ #include #endif -int php_alphasort(const struct dirent **a, const struct dirent **b) +PHPAPI int php_alphasort(const struct dirent **a, const struct dirent **b) { return strcoll((*a)->d_name,(*b)->d_name); } #endif /* HAVE_ALPHASORT */ #ifndef HAVE_SCANDIR -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)) +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)) { DIR *dirp = NULL; struct dirent **vector = NULL; -- cgit v1.2.1