summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/include/fnmatch.h
diff options
context:
space:
mode:
authorYaakov Selkowitz <yselkowi@redhat.com>2016-03-14 16:19:42 -0500
committerYaakov Selkowitz <yselkowi@redhat.com>2016-03-17 21:08:54 -0500
commitd94d983d1bed2d0f5ffb03b8b5469d7e59e839de (patch)
tree2ba77bbc71c902fae95960517bc35e5c94f82015 /winsup/cygwin/include/fnmatch.h
parentd2df6d381b36f3f76420bc3bab965fbbdc3c3a8c (diff)
downloadcygnal-d94d983d1bed2d0f5ffb03b8b5469d7e59e839de.tar.gz
cygnal-d94d983d1bed2d0f5ffb03b8b5469d7e59e839de.tar.bz2
cygnal-d94d983d1bed2d0f5ffb03b8b5469d7e59e839de.zip
Feature test macros overhaul: fnmatch.h
Use the proper internal macro for GNU extensions. Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
Diffstat (limited to 'winsup/cygwin/include/fnmatch.h')
-rw-r--r--winsup/cygwin/include/fnmatch.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/winsup/cygwin/include/fnmatch.h b/winsup/cygwin/include/fnmatch.h
index e4500abe2..556d3b1da 100644
--- a/winsup/cygwin/include/fnmatch.h
+++ b/winsup/cygwin/include/fnmatch.h
@@ -39,21 +39,21 @@
#ifndef _FNMATCH_H_
#define _FNMATCH_H_
+#include <sys/cdefs.h>
+
#define FNM_NOMATCH 1 /* Match failed. */
#define FNM_NOSYS 2 /* Function not supported (unused). */
#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. */
-#ifndef _POSIX_SOURCE
+#if __GNU_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 __P((const char *, const char *, int));
__END_DECLS