diff options
Diffstat (limited to 'posix/glob.h')
-rw-r--r-- | posix/glob.h | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/posix/glob.h b/posix/glob.h index f4c0974011..55208e1799 100644 --- a/posix/glob.h +++ b/posix/glob.h @@ -24,15 +24,17 @@ extern "C" { #undef __ptr_t #if defined __cplusplus || (defined __STDC__ && __STDC__) || defined WINDOWS32 -# undef __P -# undef __PMT -# define __P(protos) protos -# define __PMT(protos) protos -# define __ptr_t void * -# if !defined __GNUC__ || __GNUC__ < 2 -# undef __const -# define __const const +# if !defined __GLIBC__ || !defined __P +# undef __P +# undef __PMT +# define __P(protos) protos +# define __PMT(protos) protos +# if !defined __GNUC__ || __GNUC__ < 2 +# undef __const +# define __const const +# endif # endif +# define __ptr_t void * #else /* Not C++ or ANSI C. */ # undef __P # undef __PMT |