diff options
author | Ulrich Drepper <drepper@gcc.gnu.org> | 1998-06-29 18:06:26 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@gcc.gnu.org> | 1998-06-29 18:06:26 +0000 |
commit | 9ca05bb14e1afacfb4095e52736c39d76a1e8c5b (patch) | |
tree | 8674359862c6d293ea823740385fe229b15cb524 | |
parent | 4f70758f3747997152952ed15ebd75d0b5575972 (diff) | |
download | gcc-9ca05bb14e1afacfb4095e52736c39d76a1e8c5b.zip gcc-9ca05bb14e1afacfb4095e52736c39d76a1e8c5b.tar.gz gcc-9ca05bb14e1afacfb4095e52736c39d76a1e8c5b.tar.bz2 |
Rewrite __PMT change so that it works with platforms defining __P but
not __PMT.
From-SVN: r20802
-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 26ed915..b152874 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) |