Don't let the fnmatch/glob macros expand the function prototype.

This commit is contained in:
Todd C. Miller
2011-05-04 11:21:03 -04:00
parent a1f6db3a0c
commit 5c3fbfd733
2 changed files with 5 additions and 5 deletions

View File

@@ -41,8 +41,8 @@
#define FNM_LEADING_DIR 0x08 /* Ignore /<tail> after Imatch. */
#define FNM_CASEFOLD 0x10 /* Case insensitive search. */
int rpl_fnmatch(const char *, const char *, int);
#define fnmatch(_a, _b, _c) rpl_fnmatch((_a), (_b), (_c))
int fnmatch(const char *, const char *, int);
#endif /* !_FNMATCH_H_ */

View File

@@ -69,10 +69,10 @@ typedef struct {
#define GLOB_NOSYS (-4) /* Function not supported. */
#define GLOB_ABEND GLOB_ABORTED
int rpl_glob(const char *, int, int (*)(const char *, int), glob_t *);
void rpl_globfree(glob_t *);
#define glob(_a, _b, _c, _d) rpl_glob((_a), (_b), (_c), (_d))
#define globfree(_a) rpl_globfree((_a))
int glob(const char *, int, int (*)(const char *, int), glob_t *);
void globfree(glob_t *);
#endif /* !_GLOB_H_ */