diff options
author | mike <mike@FreeBSD.org> | 2002-09-17 22:25:40 +0000 |
---|---|---|
committer | mike <mike@FreeBSD.org> | 2002-09-17 22:25:40 +0000 |
commit | 086f36bd966184831309cca6a2187aa38f6b0393 (patch) | |
tree | 11278bb6d69b4c9da18b09da5e8972ac79f07865 /include | |
parent | 65b2813872da16eda1767b5afd5d8cc233c9babc (diff) | |
download | FreeBSD-src-086f36bd966184831309cca6a2187aa38f6b0393.zip FreeBSD-src-086f36bd966184831309cca6a2187aa38f6b0393.tar.gz |
Use the relatively new visibility primitives for conditionals.
Diffstat (limited to 'include')
-rw-r--r-- | include/fnmatch.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/fnmatch.h b/include/fnmatch.h index 9b74456..45f45f2 100644 --- a/include/fnmatch.h +++ b/include/fnmatch.h @@ -37,21 +37,21 @@ #ifndef _FNMATCH_H_ #define _FNMATCH_H_ +#include <sys/cdefs.h> + #define FNM_NOMATCH 1 /* Match failed. */ #define FNM_NOESCAPE 0x01 /* Disable backslash escaping. */ #define FNM_PATHNAME 0x02 /* Slash must be matched by slash. */ #define FNM_PERIOD 0x04 /* Period must be matched by period. */ -#if !defined(_ANSI_SOURCE) && !defined(_POSIX_SOURCE) +#if __BSD_VISIBLE #define FNM_LEADING_DIR 0x08 /* Ignore /<tail> after Imatch. */ #define FNM_CASEFOLD 0x10 /* Case insensitive search. */ #define FNM_IGNORECASE FNM_CASEFOLD #define FNM_FILE_NAME FNM_PATHNAME #endif -#include <sys/cdefs.h> - __BEGIN_DECLS int fnmatch(const char *, const char *, int); __END_DECLS |