123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- #ifndef _FNMATCH_H
- #define _FNMATCH_H 1
- #ifdef __cplusplus
- extern "C" {
- #endif
- #if defined __cplusplus || (defined __STDC__ && __STDC__) || defined WINDOWS32
- # if !defined __GLIBC__ || !defined __P
- # undef __P
- # define __P(protos) protos
- # endif
- #else
- # undef __P
- # define __P(protos) ()
- #endif
- #ifndef const
- # if (defined __STDC__ && __STDC__) || defined __cplusplus
- # define __const const
- # else
- # define __const
- # endif
- #endif
- #undef FNM_PATHNAME
- #undef FNM_NOESCAPE
- #undef FNM_PERIOD
- #define FNM_PATHNAME (1 << 0)
- #define FNM_NOESCAPE (1 << 1)
- #define FNM_PERIOD (1 << 2)
- #if !defined _POSIX_C_SOURCE || _POSIX_C_SOURCE < 2 || defined _GNU_SOURCE
- # define FNM_FILE_NAME FNM_PATHNAME
- # define FNM_LEADING_DIR (1 << 3)
- # define FNM_CASEFOLD (1 << 4)
- #endif
- #define FNM_NOMATCH 1
- #ifdef _XOPEN_SOURCE
- # define FNM_NOSYS (-1)
- #endif
- extern int fnmatch __P ((__const char *__pattern, __const char *__string,
- int __flags));
- #ifdef __cplusplus
- }
- #endif
- #endif
|