From 2939998ed79430106a54f9e20926026cff650087 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Wed, 10 Sep 2003 08:35:47 +0000 Subject: (__P): Remove. All uses changed to assume prototypes. --- lib/fnmatch_.h | 17 ++--------------- 1 file 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 . */ # 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 } -- cgit v1.2.3-70-g09d2