Rewrite __PMT change so that it works with platforms defining __P but
not __PMT. From-SVN: r20802
This commit is contained in:
parent
4f70758f37
commit
9ca05bb14e
1 changed files with 8 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue