diff options
author | drepper <drepper@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-06-29 18:06:26 +0000 |
---|---|---|
committer | drepper <drepper@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-06-29 18:06:26 +0000 |
commit | 8554facefb12b017104dadc573181f94eb5a855a (patch) | |
tree | 8674359862c6d293ea823740385fe229b15cb524 /libio | |
parent | 02da63821f48693fd16534d46fdaa8ea9e412503 (diff) | |
download | gcc-8554facefb12b017104dadc573181f94eb5a855a.tar.gz |
Rewrite __PMT change so that it works with platforms defining __P but
not __PMT.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@20802 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libio')
-rw-r--r-- | libio/libio.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/libio/libio.h b/libio/libio.h index 26ed915158b..b152874d1f6 100644 --- a/libio/libio.h +++ b/libio/libio.h @@ -60,14 +60,20 @@ # else # ifdef __STDC__ # define __P(p) p -# define __PMT(p) p # else # define __P(p) () -# define __PMT(p) () # endif # endif #endif /*!__P*/ +#ifndef __PMT +# ifdef __STDC__ +# define __PMT(p) p +# else +# define __PMT(p) () +# endif +#endif /*!__P*/ + /* For backward compatibility */ #ifndef _PARAMS # define _PARAMS(protos) __P(protos) |