From: Jim Meyering Date: Wed, 10 Sep 2003 08:35:47 +0000 (+0000) Subject: (__P): Remove. All uses changed to assume prototypes. X-Git-Tag: v5.1.0~778 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2939998ed79430106a54f9e20926026cff650087;p=thirdparty%2Fcoreutils.git (__P): Remove. All uses changed to assume prototypes. --- diff --git a/lib/fnmatch_.h b/lib/fnmatch_.h index 5d83ac984b..87e661f725 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 }