From: Pierre Joye Date: Tue, 2 Dec 2008 10:15:41 +0000 (+0000) Subject: - MFB: export php_scandir and php_alphasort correctly (used by APC for example) X-Git-Tag: BEFORE_HEAD_NS_CHANGES_MERGE~27 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8862c5d405860c0a5418eb9283796ec87105fbb9;p=php - MFB: export php_scandir and php_alphasort correctly (used by APC for example) --- 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; diff --git a/main/php_scandir.h b/main/php_scandir.h index 5c6584c616..c3b6f0a7c1 100644 --- a/main/php_scandir.h +++ b/main/php_scandir.h @@ -42,13 +42,13 @@ #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)); +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)); #endif #ifdef HAVE_ALPHASORT #define php_alphasort alphasort #else -int php_alphasort(const struct dirent **a, const struct dirent **b); +PHPAPI int php_alphasort(const struct dirent **a, const struct dirent **b); #endif #endif /* PHP_SCANDIR_H */