diff options
Diffstat (limited to 'posix/fnmatch.h')
-rw-r--r-- | posix/fnmatch.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/posix/fnmatch.h b/posix/fnmatch.h index 0966ee301a..eeaee7fb8c 100644 --- a/posix/fnmatch.h +++ b/posix/fnmatch.h @@ -24,8 +24,10 @@ extern "C" { #endif #if defined __cplusplus || (defined __STDC__ && __STDC__) || defined WINDOWS32 -# undef __P -# define __P(protos) protos +# if !defined __GLIBC__ || !defined __P +# undef __P +# define __P(protos) protos +# endif #else /* Not C++ or ANSI C. */ # undef __P # define __P(protos) () |