Use __GNU_P not __P.

This commit is contained in:
wollman 1994-08-04 20:57:07 +00:00
parent f53b3edeed
commit a7daa1ed08

View File

@ -24,11 +24,11 @@ extern "C" {
#endif #endif
#if defined (__cplusplus) || (defined (__STDC__) && __STDC__) #if defined (__cplusplus) || (defined (__STDC__) && __STDC__)
#undef __P #undef __GNU_P
#define __P(args) args #define __GNU_P(args) args
#else /* Not C++ or ANSI C. */ #else /* Not C++ or ANSI C. */
#undef __P #undef __GNU_P
#define __P(args) () #define __GNU_P(args) ()
/* We can get away without defining `const' here only because in this file /* 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 it is used only inside the prototype for `fnmatch', which is elided in
non-ANSI C where `const' is problematical. */ non-ANSI C where `const' is problematical. */
@ -50,7 +50,7 @@ extern "C" {
/* Match STRING against the filename pattern PATTERN, /* Match STRING against the filename pattern PATTERN,
returning zero if it matches, FNM_NOMATCH if not. */ returning zero if it matches, FNM_NOMATCH if not. */
extern int fnmatch __P ((const char *__pattern, const char *__string, extern int fnmatch __GNU_P ((const char *__pattern, const char *__string,
int __flags)); int __flags));
#ifdef __cplusplus #ifdef __cplusplus