From 9ca05bb14e1afacfb4095e52736c39d76a1e8c5b Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Mon, 29 Jun 1998 18:06:26 +0000 Subject: [PATCH] Rewrite __PMT change so that it works with platforms defining __P but not __PMT. From-SVN: r20802 --- libio/libio.h | 10 ++++++++-- 1 file 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) -- 2.30.2