aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@gcc.gnu.org>1998-06-29 18:06:26 +0000
committerUlrich Drepper <drepper@gcc.gnu.org>1998-06-29 18:06:26 +0000
commit9ca05bb14e1afacfb4095e52736c39d76a1e8c5b (patch)
tree8674359862c6d293ea823740385fe229b15cb524
parent4f70758f3747997152952ed15ebd75d0b5575972 (diff)
downloadgcc-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.h10
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)