]> granicus.if.org Git - php/commitdiff
- MFH: expose glob and globfree on wi ndows, can be used by shared ext (core or extern)
authorPierre Joye <pajoye@php.net>
Thu, 1 Jan 2009 12:32:49 +0000 (12:32 +0000)
committerPierre Joye <pajoye@php.net>
Thu, 1 Jan 2009 12:32:49 +0000 (12:32 +0000)
win32/glob.c
win32/glob.h

index b369362c1914fdda26a8d73b921bb476eaba8309..c95c45794e1f4dd91ec01d619008ef45596c5ef4 100644 (file)
@@ -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;
 {
index dabf095763ba2d2081e025f1d392b512c0a2ef25..3f7a57a0b366ecd7c623a60b4e4141332f3da316 100644 (file)
@@ -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_ */