mirror of
https://git.musl-libc.org/git/musl
synced 2025-02-19 03:34:17 +03:00

the old behavior of exposing nothing except plain ISO C can be obtained by defining __STRICT_ANSI__ or using a compiler option (such as -std=c99) that predefines it. the new default featureset is POSIX with XSI plus _BSD_SOURCE. any explicit feature test macros will inhibit the default. installation docs have also been updated to reflect this change.
30 lines
436 B
C
30 lines
436 B
C
#ifndef _FNMATCH_H
|
|
#define _FNMATCH_H
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include <features.h>
|
|
|
|
#define FNM_PATHNAME 0x1
|
|
#define FNM_NOESCAPE 0x2
|
|
#define FNM_PERIOD 0x4
|
|
|
|
#ifdef _GNU_SOURCE
|
|
#define FNM_LEADING_DIR 0x8
|
|
#define FNM_CASEFOLD 0x10
|
|
#define FNM_FILE_NAME FNM_PATHNAME
|
|
#endif
|
|
|
|
#define FNM_NOMATCH 1
|
|
#define FNM_NOSYS (-1)
|
|
|
|
int fnmatch(const char *, const char *, int);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|