summaryrefslogtreecommitdiff
path: root/main/php_scandir.c
diff options
context:
space:
mode:
authorPierre Joye <pajoye@php.net>2008-12-02 10:15:41 +0000
committerPierre Joye <pajoye@php.net>2008-12-02 10:15:41 +0000
commit8862c5d405860c0a5418eb9283796ec87105fbb9 (patch)
tree1b772a83c3772350bc63f3a6659e473ce593659d /main/php_scandir.c
parent1e4f761f357a185885ce0fac8d73ac5379a1826d (diff)
downloadphp-git-8862c5d405860c0a5418eb9283796ec87105fbb9.tar.gz
- MFB: export php_scandir and php_alphasort correctly (used by APC for example)
Diffstat (limited to 'main/php_scandir.c')
-rw-r--r--main/php_scandir.c4
1 files changed, 2 insertions, 2 deletions
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 <string.h>
#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;