]> git.saurik.com Git - apple/libc.git/blobdiff - include/fnmatch.h
Libc-391.tar.gz
[apple/libc.git] / include / fnmatch.h
index b840732e9fced0f60097bbcd70d615d3623a2aa6..d4425f170298f643e41b30dd38b426520a1b4bcf 100644 (file)
@@ -3,8 +3,6 @@
  *
  * @APPLE_LICENSE_HEADER_START@
  * 
- * Copyright (c) 1999-2003 Apple Computer, Inc.  All Rights Reserved.
- * 
  * This file contains Original Code and/or Modifications of Original Code
  * as defined in and that are subject to the Apple Public Source License
  * Version 2.0 (the 'License'). You may not use this file except in
 #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. */
 
-#define        FNM_NOSYS       (-1)    /* Reserved */
+#define        FNM_NOSYS       (-1)    /* Reserved. */
 
-#if !defined(_ANSI_SOURCE) && !defined(_POSIX_SOURCE)
-#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
+#if !defined(_ANSI_SOURCE) && !defined(_POSIX_C_SOURCE)
+#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
-#ifndef        _POSIX_SOURCE
 int     fnmatch(const char *, const char *, int);
-#endif
 __END_DECLS
 
 #endif /* !_FNMATCH_H_ */