expose FNM_* extensions in fnmatch.h without _GNU_SOURCE
[musl] / include / fnmatch.h
1 #ifndef _FNMATCH_H
2 #define _FNMATCH_H
3
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7
8 #include <features.h>
9
10 #define FNM_PATHNAME 0x1
11 #define FNM_NOESCAPE 0x2
12 #define FNM_PERIOD   0x4
13 #define FNM_LEADING_DIR 0x8           
14 #define FNM_CASEFOLD    0x10
15 #define FNM_FILE_NAME   FNM_PATHNAME
16
17 #define FNM_NOMATCH 1
18 #define FNM_NOSYS   (-1)
19
20 int fnmatch(const char *, const char *, int);
21
22 #ifdef __cplusplus
23 }
24 #endif
25
26 #endif