summaryrefslogtreecommitdiff
path: root/lib/fnmatch_.h
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-09-10 08:35:47 +0000
committerJim Meyering <jim@meyering.net>2003-09-10 08:35:47 +0000
commit2939998ed79430106a54f9e20926026cff650087 (patch)
treeee16b1fa1a525dd73da049e2c109d04ed542e3b7 /lib/fnmatch_.h
parent74916e862824f1fb31b4ff521036f51e2bdb3c91 (diff)
downloadcoreutils-2939998ed79430106a54f9e20926026cff650087.tar.xz
(__P): Remove. All uses changed to assume prototypes.
Diffstat (limited to 'lib/fnmatch_.h')
-rw-r--r--lib/fnmatch_.h17
1 files changed, 2 insertions, 15 deletions
diff --git a/lib/fnmatch_.h b/lib/fnmatch_.h
index 5d83ac984..87e661f72 100644
--- a/lib/fnmatch_.h
+++ b/lib/fnmatch_.h
@@ -22,19 +22,6 @@
extern "C" {
# endif
-# if defined __cplusplus || (defined __STDC__ && __STDC__) || defined WINDOWS32
-# if !defined __GLIBC__ || !defined __P
-# undef __P
-# define __P(protos) protos
-# endif
-# else /* Not C++ or ANSI C. */
-# undef __P
-# define __P(protos) ()
-/* We can get away without defining `const' here only because in this file
- it is used only inside the prototype for `fnmatch', which is elided in
- non-ANSI C where `const' is problematical. */
-# endif /* C++ or ANSI C. */
-
/* We #undef these before defining them because some losing systems
(HP-UX A.08.07 for example) define these in <unistd.h>. */
# undef FNM_PATHNAME
@@ -66,8 +53,8 @@ extern "C" {
/* Match NAME against the filename pattern PATTERN,
returning zero if it matches, FNM_NOMATCH if not. */
-extern int fnmatch __P ((const char *__pattern, const char *__name,
- int __flags));
+extern int fnmatch (const char *__pattern, const char *__name,
+ int __flags);
# ifdef __cplusplus
}