From: Pierre Joye Date: Thu, 1 Jan 2009 12:32:49 +0000 (+0000) Subject: - MFH: expose glob and globfree on wi ndows, can be used by shared ext (core or extern) X-Git-Tag: php-5.3.0beta1~314 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=438c4cfacc32df4aab1a4f8e5ed43c7150b4118c;p=php - MFH: expose glob and globfree on wi ndows, can be used by shared ext (core or extern) --- diff --git a/win32/glob.c b/win32/glob.c index b369362c19..c95c45794e 100644 --- a/win32/glob.c +++ b/win32/glob.c @@ -159,7 +159,7 @@ static int match(Char *, Char *, Char *); static void qprintf(const char *, Char *); #endif -int +PHPAPI int glob(pattern, flags, errfunc, pglob) const char *pattern; int flags, (*errfunc)(const char *, int); @@ -811,7 +811,7 @@ match(name, pat, patend) } /* Free allocated data belonging to a glob_t structure. */ -void +PHPAPI void globfree(pglob) glob_t *pglob; { diff --git a/win32/glob.h b/win32/glob.h index dabf095763..3f7a57a0b3 100644 --- a/win32/glob.h +++ b/win32/glob.h @@ -96,7 +96,7 @@ typedef struct { #define GLOB_ABEND GLOB_ABORTED BEGIN_EXTERN_C() -int glob(const char *, int, int (*)(const char *, int), glob_t *); -void globfree(glob_t *); +PHPAPI int glob(const char *, int, int (*)(const char *, int), glob_t *); +PHPAPI void globfree(glob_t *); END_EXTERN_C() #endif /* !_GLOB_H_ */