X-Git-Url: https://git.saurik.com/apple/libc.git/blobdiff_plain/c957a83bde4df2e2d3d1ed0963656856b48ef0a0..224c70764cab4e0e39a26aaf3ad3016552f62f55:/include/fnmatch.h?ds=sidebyside diff --git a/include/fnmatch.h b/include/fnmatch.h index d4425f1..f2e44e5 100644 --- a/include/fnmatch.h +++ b/include/fnmatch.h @@ -68,7 +68,7 @@ #define FNM_NOSYS (-1) /* Reserved. */ -#if !defined(_ANSI_SOURCE) && !defined(_POSIX_C_SOURCE) +#if !defined(_ANSI_SOURCE) && (!defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE)) #define FNM_LEADING_DIR 0x08 /* Ignore / after Imatch. */ #define FNM_CASEFOLD 0x10 /* Case insensitive search. */ #define FNM_IGNORECASE FNM_CASEFOLD @@ -76,7 +76,15 @@ #endif __BEGIN_DECLS -int fnmatch(const char *, const char *, int); +//Begin-Libc +#ifndef LIBC_ALIAS_FNMATCH +//End-Libc +int fnmatch(const char *, const char *, int) __DARWIN_ALIAS(fnmatch); +//Begin-Libc +#else /* LIBC_ALIAS_FNMATCH */ +int fnmatch(const char *, const char *, int) LIBC_ALIAS(fnmatch); +#endif /* !LIBC_ALIAS_FNMATCH */ +//End-Libc __END_DECLS #endif /* !_FNMATCH_H_ */